diff options
author | junjiez <junjiez@codeaurora.org> | 2018-04-25 17:21:39 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-06-06 22:44:35 -0700 |
commit | 8f5ad08d82b486f938bf376267d55a6caec96f15 (patch) | |
tree | 371f976c06a8b8b2292cc645cf3495ae3107dfb9 /src/com/android/camera/CaptureUI.java | |
parent | 7252304733f07346784dc04c62e11e575338ff8c (diff) | |
download | android_packages_apps_Snap-8f5ad08d82b486f938bf376267d55a6caec96f15.tar.gz android_packages_apps_Snap-8f5ad08d82b486f938bf376267d55a6caec96f15.tar.bz2 android_packages_apps_Snap-8f5ad08d82b486f938bf376267d55a6caec96f15.zip |
SnapdragonCamera:Fix Dp toast
remove GLSurface when DP is off.
when GLsurface is created, but
DeepPortraitFilter is not in
frame filter, don't show toast.
Change-Id: I122d925e1564b0fcd75cd7797bf3f75085ecb2e7
CRs-Fixed: 2228152
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-x | src/com/android/camera/CaptureUI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java index f5fbe2fc4..0edc4606e 100755 --- a/src/com/android/camera/CaptureUI.java +++ b/src/com/android/camera/CaptureUI.java @@ -1333,9 +1333,9 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, FrameLayout layout = (FrameLayout)mActivity.findViewById(R.id.camera_glpreview); if (mGLSurfaceView != null) { mGLSurfaceView.setVisibility(View.GONE); - layout.removeView(mGLSurfaceView); + layout.removeAllViews(); + mGLSurfaceView = null; } - mGLSurfaceView = null; mDeepportraitSeekBar.setVisibility(View.GONE); mRenderOverlay.setVisibility(View.VISIBLE); } |