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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user