Update PreviewImpl.java

pull/1/head
android-dataticket 8 years ago committed by GitHub
parent 5ca35cdd35
commit b9533ba289
  1. 2
      camerakit/src/main/base/com/flurgle/camerakit/PreviewImpl.java

@ -64,7 +64,7 @@ abstract class PreviewImpl {
void setTruePreviewSize(final int width, final int height) { void setTruePreviewSize(final int width, final int height) {
this.mTrueWidth = width; this.mTrueWidth = width;
this.mTrueHeight = height; this.mTrueHeight = height;
((Activity) getView().getContext()).runOnUiThread(new Runnable() { getView().post(new Runnable() {
@Override @Override
public void run() { public void run() {
if (width != 0 && height != 0) { if (width != 0 && height != 0) {

Loading…
Cancel
Save