Allow access to permissions, even if app has none am: 36866c8e84
am: 6fde534148
* commit '6fde534148c3f93b6362d4927270f81048a6bef3':
Allow access to permissions, even if app has none
diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java
index a6b35df..4401094 100755
--- a/src/com/android/settings/applications/InstalledAppDetails.java
+++ b/src/com/android/settings/applications/InstalledAppDetails.java
@@ -961,7 +961,6 @@
mPermissionReceiver = null;
final Resources res = getResources();
CharSequence summary = null;
- boolean enabled = false;
if (counts != null) {
int totalCount = counts[1];
int additionalCounts = counts[2];
@@ -970,8 +969,6 @@
summary = res.getString(
R.string.runtime_permissions_summary_no_permissions_requested);
} else {
- enabled = true;
-
final ArrayList<CharSequence> list = new ArrayList(Arrays.asList(groupLabels));
if (additionalCounts > 0) {
// N additional permissions.
@@ -988,7 +985,6 @@
}
}
mPermissionsPreference.setSummary(summary);
- mPermissionsPreference.setEnabled(enabled);
}
};
}