Bug 21589105 Rescope WRITE_SETTINGS (UX and Settings app change)...
Overall, fixed the detection of the state of permission in the corresponding UX to be more accurate. Also ensured that apps needing this capability can launch the summary UX through a specific intent. AndroidManifest: Adds the proper intent-filter so that apps can launch the Settings page using intent. strings.xml: Increased the CHAR limits for some strings due to requests from translators. Change-Id: Ie64f86e034867ed582c1c583a5e8f84671fa4d63
This commit is contained in:
@@ -60,15 +60,12 @@ public class AppStateWriteSettingsBridge extends AppStateAppOpsBridge {
|
||||
return super.getNumPackagesAllowedByAppOps();
|
||||
}
|
||||
|
||||
public static class WriteSettingsState {
|
||||
PermissionState mPermissionState;
|
||||
|
||||
public static class WriteSettingsState extends AppStateAppOpsBridge.PermissionState {
|
||||
public WriteSettingsState(PermissionState permissionState) {
|
||||
mPermissionState = permissionState;
|
||||
}
|
||||
|
||||
public boolean canWrite() {
|
||||
return mPermissionState.isPermissible();
|
||||
super(permissionState.packageName, permissionState.userHandle);
|
||||
this.packageInfo = permissionState.packageInfo;
|
||||
this.appOpMode = permissionState.appOpMode;
|
||||
this.permissionDeclared = permissionState.permissionDeclared;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user