remove a deprecated variable
This commit is contained in:
parent
1145be8bda
commit
5c091f49c5
|
@ -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;
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue