From 2d73737460bcd453421dcc33dbdc96ac64f31542 Mon Sep 17 00:00:00 2001 From: junjiez Date: Tue, 17 Dec 2019 14:58:38 +0800 Subject: SnapdraongCamera:Support GTS intent Get extra parameter from GTS intent to check if need to open front camera. Change-Id: Ide3d004ceb3626a246a45f9ec18db454628a6542 CRs-Fixed: 2581193 --- src/com/android/camera/CaptureModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index d8a5b75b5..a1c40aff5 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -1876,7 +1876,8 @@ public class CaptureModule implements CameraModule, PhotoController, if (myExtras != null) { mSaveUri = (Uri) myExtras.getParcelable(MediaStore.EXTRA_OUTPUT); mCropValue = myExtras.getString("crop"); - mUseFrontCamera = myExtras.getBoolean("android.intent.extra.USE_FRONT_CAMERA", false); + mUseFrontCamera = myExtras.getBoolean("android.intent.extra.USE_FRONT_CAMERA", false) || + myExtras.getBoolean("com.google.assistant.extra.USE_FRONT_CAMERA", false); mTimer = myExtras.getInt("android.intent.extra.TIMER_DURATION_SECONDS", 0); Log.d(TAG, "mUseFrontCamera :" + mUseFrontCamera + ", mTimer :" + mTimer); } -- cgit v1.2.3