summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/applications
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-10-22 23:12:02 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-10-22 23:12:02 +0000
commit34d6ea560d3935eef6e53e93d5bb7ba1a8148965 (patch)
treecbc7c1b414fb5f4903fea64642d7fa2bbecf1e63 /src/com/android/settings/applications
parentf3ad5262003947120243736851ff5dce7ae7635a (diff)
parent6e2e8e17cfea09548067baa8b361dbc31dce385c (diff)
downloadpackages_apps_Settings-34d6ea560d3935eef6e53e93d5bb7ba1a8148965.zip
packages_apps_Settings-34d6ea560d3935eef6e53e93d5bb7ba1a8148965.tar.gz
packages_apps_Settings-34d6ea560d3935eef6e53e93d5bb7ba1a8148965.tar.bz2
Fix crash in Settings from uninstall
am: 6e2e8e17cf * commit '6e2e8e17cfea09548067baa8b361dbc31dce385c': Fix crash in Settings from uninstall
Diffstat (limited to 'src/com/android/settings/applications')
-rwxr-xr-xsrc/com/android/settings/applications/InstalledAppDetails.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java
index 4401094..824cd18 100755
--- a/src/com/android/settings/applications/InstalledAppDetails.java
+++ b/src/com/android/settings/applications/InstalledAppDetails.java
@@ -704,6 +704,10 @@ public class InstalledAppDetails extends AppInfoBase
* @see android.view.View.OnClickListener#onClick(android.view.View)
*/
public void onClick(View v) {
+ if (mAppEntry == null) {
+ setIntentAndFinish(true, true);
+ return;
+ }
String packageName = mAppEntry.info.packageName;
if(v == mUninstallButton) {
if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {