summaryrefslogtreecommitdiffstats
path: root/packages/SettingsLib
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-05-13 12:30:34 -0400
committerJason Monk <jmonk@google.com>2015-05-13 12:30:34 -0400
commit02453f605b3ccd484bbce3e8b00094253b38f718 (patch)
tree2143afbffe732f71eb4d18efa38928408701d319 /packages/SettingsLib
parentcf304fb35c2086601178858e307d3dda36dbbff7 (diff)
downloadframeworks_base-02453f605b3ccd484bbce3e8b00094253b38f718.zip
frameworks_base-02453f605b3ccd484bbce3e8b00094253b38f718.tar.gz
frameworks_base-02453f605b3ccd484bbce3e8b00094253b38f718.tar.bz2
SettingsLib: Track permission's packageName
Bug: 20269176 Change-Id: If07051985f3e8b6223cba4289d6cd29d94ebb0cd
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r--packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java b/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java
index 60b5ba5..2606af2 100644
--- a/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java
+++ b/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java
@@ -82,6 +82,7 @@ public class PermissionsInfo {
// TODO: Add default permission icon.
group.icon = info.icon != 0 ? info.loadIcon(mPm) : new ShapeDrawable();
group.name = info.name;
+ group.packageName = info.packageName;
group.label = info.loadLabel(mPm).toString();
mGroups.add(group);
mGroupLookup.put(permission, group);
@@ -105,6 +106,7 @@ public class PermissionsInfo {
// TODO: Add default permission icon.
group.icon = groupInfo.icon != 0 ? groupInfo.loadIcon(mPm) : new ShapeDrawable();
group.name = groupInfo.name;
+ group.packageName = groupInfo.packageName;
group.label = groupInfo.loadLabel(mPm).toString();
synchronized (mGroups) {
mGroups.add(group);
@@ -172,6 +174,7 @@ public class PermissionsInfo {
public final List<String> possibleApps = new ArrayList<>();
public final List<String> grantedApps = new ArrayList<>();
public String name;
+ public String packageName;
public String label;
public Drawable icon;