Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e4f9369 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/32825845'] into 25Q2-release.

Change-Id: If5c908aa8b99865ac290abeb6f7d7db4028b889e
parents 2c16eb43 b4e99810
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1686,7 +1686,10 @@ public final class CameraManager {
     */
    public static int getRotationOverride(@Nullable Context context,
            @Nullable PackageManager packageManager, @Nullable String packageName) {
        if (DesktopModeFlags.ENABLE_CAMERA_COMPAT_SIMULATE_REQUESTED_ORIENTATION.isTrue()) {
        // Isolated process does not have access to the ContentProvider which
        // `DesktopModeFlags` uses. `DesktopModeFlags` combines developer options and Aconfig flags.
        if (!Process.isIsolated() && DesktopModeFlags
                .ENABLE_CAMERA_COMPAT_SIMULATE_REQUESTED_ORIENTATION.isTrue()) {
            return getRotationOverrideInternal(context, packageManager, packageName);
        } else {
            return shouldOverrideToPortrait(packageManager, packageName)