remove a deprecated variable

This commit is contained in:
tibbi 2016-07-12 11:19:34 +02:00
parent 1145be8bda
commit 5c091f49c5
2 changed files with 0 additions and 6 deletions

View File

@ -52,7 +52,6 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
private static boolean mIsVideoMode; private static boolean mIsVideoMode;
private static boolean mIsSurfaceCreated; private static boolean mIsSurfaceCreated;
private static boolean mSwitchToVideoAsap; private static boolean mSwitchToVideoAsap;
private static boolean mIsVideoCaptureIntent;
private static boolean mSetupPreviewAfterMeasure; private static boolean mSetupPreviewAfterMeasure;
private static boolean mFocusBeforeCapture; private static boolean mFocusBeforeCapture;
private static boolean mForceAspectRatio; private static boolean mForceAspectRatio;
@ -93,10 +92,6 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
} }
} }
public void setIsVideoCaptureIntent() {
mIsVideoCaptureIntent = true;
}
public boolean setCamera(int cameraId) { public boolean setCamera(int cameraId) {
mCurrCameraId = cameraId; mCurrCameraId = cameraId;
Camera newCamera; Camera newCamera;

View File

@ -147,7 +147,6 @@ public class MainActivity extends AppCompatActivity
} else if (intent.getAction().equals(MediaStore.ACTION_VIDEO_CAPTURE)) { } else if (intent.getAction().equals(MediaStore.ACTION_VIDEO_CAPTURE)) {
mIsVideoCaptureIntent = true; mIsVideoCaptureIntent = true;
hideToggleModeAbout(); hideToggleModeAbout();
mPreview.setIsVideoCaptureIntent();
mShutterBtn.setImageDrawable(getResources().getDrawable(R.mipmap.video_rec)); mShutterBtn.setImageDrawable(getResources().getDrawable(R.mipmap.video_rec));
} }
} }