summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShijian Li <shijianli@google.com>2017-01-09 19:50:39 (GMT)
committerandroid-build-merger <android-build-merger@google.com>2017-01-09 19:50:39 (GMT)
commit9cc396b2333f57686df18bf183738356fe9133ca (patch)
tree1e4c643c38dcb13c206dc11c717f5353c27b9de5
parent8eb3b01e0137ecbe46c4e7c6aca5be3d18408c61 (diff)
parentf7d0ef9f74ece852c397e4e5c2f617986b24260c (diff)
downloadandroid_packages_apps_PackageInstaller-9cc396b2333f57686df18bf183738356fe9133ca.zip
android_packages_apps_PackageInstaller-9cc396b2333f57686df18bf183738356fe9133ca.tar.gz
android_packages_apps_PackageInstaller-9cc396b2333f57686df18bf183738356fe9133ca.tar.bz2
Don't set USER_FIXED when revoking a permission inside Settings -> App.
am: f7d0ef9f74 Change-Id: I7cc4dcd66edcd68366f40fd67e812d76fb2dcb3b
-rw-r--r--src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java b/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java
index 3161567..9ad5253 100644
--- a/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java
+++ b/src/com/android/packageinstaller/permission/ui/wear/AppPermissionsFragmentWear.java
@@ -210,7 +210,7 @@ public final class AppPermissionsFragmentWear extends PreferenceFragment {
if((Boolean) newVal) {
group.grantRuntimePermissions(false, new String[]{ perm.name });
} else {
- group.revokeRuntimePermissions(true, new String[]{ perm.name });
+ group.revokeRuntimePermissions(false, new String[]{ perm.name });
}
return true;
});