summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2021-03-23 23:38:00 -0400
committerDaniel Sandler <dsandler@android.com>2021-03-29 20:25:01 +0000
commitf22cf3df132f50e7f949b0e6a90ec01acf8328f2 (patch)
treec033b322577db18a7857706888e2dce542f0e9fb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0f97905040606c3bba2f90d9dba33c16cb76873a (diff)
Allow explicitly setting the camera component launched by double-press power.
Using an implicit intent at the moment of picture-taking usually goes unnoticed. But immediately after installing a new camera, this behavior becomes incredibly frustrating to users as they are presented with a puzzling resolver dialog (or in the case of the secure camera, the authenticator). And if, at this moment, the user chooses to make one of the options a default, it's almost impossible to figure out how to change this setting. As a result, many OEMs simply hardcode the camera gesture to launch a specific preinstalled camera, but this is poorly supported by AOSP, leading to duplicate implementations and bugs. This patch routes all camera intents in System UI through a single utility class, creating a convenient spot to insert a resource that contains the OEM's default preinstalled camera app. Note that this does not affect implicit intent resolution in any way; any app may create a chooser for, e.g., MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA and allow the user to pick from the available cameras. Bugreport/dumpsys output to look for: $ adb shell dumpsys activity service com.android.systemui | grep -C3 'Camera gesture' | tail -3 Camera gesture intents: Insecure camera: Intent { act=android.media.action.STILL_IMAGE_CAMERA } Secure camera: Intent { act=android.media.action.STILL_IMAGE_CAMERA_SECURE flg=0x800000 } Override package: null Bug: 171807357 Fixes: 154218868 Test: atest SystemUITests Change-Id: I2c0033e52c8a3963768d29f2e76e555d405aaa7e
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions