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

Commit 12c74fb1 authored by Austin Borger's avatar Austin Borger
Browse files

CameraManager: Swap propertyName / packageName in call to getProperty()

propertyName should be the first argument, not packageName.

Bug: 272595790
Test: Added manifest property to sample app, trying all combinations
Change-Id: Ida07d367a265f1bd703461dfbedc08f6cdeaba50
parent 0011ba7e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1189,8 +1189,8 @@ public final class CameraManager {
            PackageManager packageManager = context.getPackageManager();

            try {
                return packageManager.getProperty(context.getOpPackageName(),
                            PROPERTY_COMPAT_OVERRIDE_LANDSCAPE_TO_PORTRAIT).getBoolean();
                return packageManager.getProperty(PROPERTY_COMPAT_OVERRIDE_LANDSCAPE_TO_PORTRAIT,
                        context.getOpPackageName()).getBoolean();
            } catch (PackageManager.NameNotFoundException e) {
                // No such property
            }