Fix re-enabling alert window appop after leaving VR mode.
Bug: 37526753 Test: Check that system alert windows appear after leaving VR mode. Change-Id: I2942b2e2bd30308752367963b7ae896462811d2f
This commit is contained in:
@@ -642,16 +642,12 @@ public class VrManagerService extends SystemService implements EnabledComponentC
|
||||
false, mOverlayToken, null, oldUserId);
|
||||
}
|
||||
|
||||
if (!mVrModeEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Apply the restrictions for the current user based on vr state
|
||||
String[] exemptions = (exemptedPackage == null) ? new String[0] :
|
||||
new String[] { exemptedPackage };
|
||||
|
||||
appOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
|
||||
true, mOverlayToken, exemptions, newUserId);
|
||||
mVrModeEnabled, mOverlayToken, exemptions, newUserId);
|
||||
}
|
||||
|
||||
private void updateDependentAppOpsLocked(String newVrServicePackage, int newUserId,
|
||||
|
||||
Reference in New Issue
Block a user