diff options
author | junjiez <junjiez@codeaurora.org> | 2019-12-17 14:58:38 +0800 |
---|---|---|
committer | Sridhar Gujje <sgujje@codeaurora.org> | 2020-01-11 07:31:29 +0530 |
commit | 2d73737460bcd453421dcc33dbdc96ac64f31542 (patch) | |
tree | bdc6ddd9c409c6f47c355166a0e7d1c9352de540 | |
parent | 54fd14bebbd07d39e9a24e428014a04c6da187d7 (diff) | |
download | android_packages_apps_Snap-2d73737460bcd453421dcc33dbdc96ac64f31542.tar.gz android_packages_apps_Snap-2d73737460bcd453421dcc33dbdc96ac64f31542.tar.bz2 android_packages_apps_Snap-2d73737460bcd453421dcc33dbdc96ac64f31542.zip |
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-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); } |