File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
core/java/android/hardware/camera2 Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1686,7 +1686,10 @@ public static int getRotationOverride(@Nullable Context context) {
16861686 */
16871687 public static int getRotationOverride (@ Nullable Context context ,
16881688 @ Nullable PackageManager packageManager , @ Nullable String packageName ) {
1689- if (DesktopModeFlags .ENABLE_CAMERA_COMPAT_SIMULATE_REQUESTED_ORIENTATION .isTrue ()) {
1689+ // Isolated process does not have access to the ContentProvider which
1690+ // `DesktopModeFlags` uses. `DesktopModeFlags` combines developer options and Aconfig flags.
1691+ if (!Process .isIsolated () && DesktopModeFlags
1692+ .ENABLE_CAMERA_COMPAT_SIMULATE_REQUESTED_ORIENTATION .isTrue ()) {
16901693 return getRotationOverrideInternal (context , packageManager , packageName );
16911694 } else {
16921695 return shouldOverrideToPortrait (packageManager , packageName )
You can’t perform that action at this time.
0 commit comments