summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/applications/InstalledAppDetails.java
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-11-02 14:53:53 -0800
committerRoman Birg <roman@cyngn.com>2015-11-03 12:20:36 -0800
commit45b8df16fd9f45f5bb4f4ecb72dbd567e829dcbd (patch)
treeeec19589f1514ed4fd41f4fa84757458522743c4 /src/com/android/settings/applications/InstalledAppDetails.java
parente06cbb57173c3c8206db74a3fdf26553c52ae969 (diff)
downloadpackages_apps_Settings-45b8df16fd9f45f5bb4f4ecb72dbd567e829dcbd.zip
packages_apps_Settings-45b8df16fd9f45f5bb4f4ecb72dbd567e829dcbd.tar.gz
packages_apps_Settings-45b8df16fd9f45f5bb4f4ecb72dbd567e829dcbd.tar.bz2
Settings: add package name to app info
Change-Id: I8ce737ec5150f37e61240d8053403046ca9317fb Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src/com/android/settings/applications/InstalledAppDetails.java')
-rwxr-xr-xsrc/com/android/settings/applications/InstalledAppDetails.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java
index 3a0eee6..8b6fe53 100755
--- a/src/com/android/settings/applications/InstalledAppDetails.java
+++ b/src/com/android/settings/applications/InstalledAppDetails.java
@@ -443,7 +443,7 @@ public class InstalledAppDetails extends AppInfoBase
final View appSnippet = mHeader.findViewById(R.id.app_snippet);
mState.ensureIcon(mAppEntry);
setupAppSnippet(appSnippet, mAppEntry.label, mAppEntry.icon,
- pkgInfo != null ? pkgInfo.versionName : null);
+ pkgInfo != null ? pkgInfo.versionName : null, pkgInfo.packageName);
}
private boolean signaturesMatch(String pkg1, String pkg2) {
@@ -762,7 +762,7 @@ public class InstalledAppDetails extends AppInfoBase
}
public static void setupAppSnippet(View appSnippet, CharSequence label, Drawable icon,
- CharSequence versionName) {
+ CharSequence versionName, String packageName) {
LayoutInflater.from(appSnippet.getContext()).inflate(R.layout.widget_text_views,
(ViewGroup) appSnippet.findViewById(android.R.id.widget_frame));
@@ -774,6 +774,12 @@ public class InstalledAppDetails extends AppInfoBase
// Version number of application
TextView appVersion = (TextView) appSnippet.findViewById(R.id.widget_text1);
+ if (packageName != null) {
+ TextView appPackage = (TextView) appSnippet.findViewById(R.id.widget_text2);
+ appPackage.setText(packageName);
+ appPackage.setSelected(true);
+ }
+
if (!TextUtils.isEmpty(versionName)) {
appVersion.setSelected(true);
appVersion.setVisibility(View.VISIBLE);