diff options
author | junjiez <junjiez@codeaurora.org> | 2019-12-17 14:58:38 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-01-09 02:49:55 -0800 |
commit | 8c02c3f8d06dfd2babbfa4759855e9afb948e4a9 (patch) | |
tree | 3e55e7b1f6e71215523389d6d290782746e8b77a | |
parent | 9a5ff16a30d320dd8ab02392b4cb6a0abfcb9a87 (diff) | |
download | android_packages_apps_Snap-8c02c3f8d06dfd2babbfa4759855e9afb948e4a9.tar.gz android_packages_apps_Snap-8c02c3f8d06dfd2babbfa4759855e9afb948e4a9.tar.bz2 android_packages_apps_Snap-8c02c3f8d06dfd2babbfa4759855e9afb948e4a9.zip |
SnapdraongCamera:Support GTS intent
Get extra parameter from GTS intent
to check if need to open front camera.
Change-Id: I5803e2460f195524cbf139842f6e433e0a7321b4
CRs-Fixed: 2581193
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |