summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2019-12-17 14:58:38 +0800
committerSridhar Gujje <sgujje@codeaurora.org>2020-01-11 07:31:29 +0530
commit2d73737460bcd453421dcc33dbdc96ac64f31542 (patch)
treebdc6ddd9c409c6f47c355166a0e7d1c9352de540
parent54fd14bebbd07d39e9a24e428014a04c6da187d7 (diff)
downloadandroid_packages_apps_Snap-2d73737460bcd453421dcc33dbdc96ac64f31542.zip
android_packages_apps_Snap-2d73737460bcd453421dcc33dbdc96ac64f31542.tar.gz
android_packages_apps_Snap-2d73737460bcd453421dcc33dbdc96ac64f31542.tar.bz2
SnapdraongCamera:Support GTS intent
Get extra parameter from GTS intent to check if need to open front camera. Change-Id: Ide3d004ceb3626a246a45f9ec18db454628a6542 CRs-Fixed: 2581193
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index d8a5b75..a1c40af 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);
}