summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-10-22 23:37:48 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-10-22 23:37:48 +0000
commiteccc9b39626c525763e5590728f413e4d7ff8cf5 (patch)
treee63d784f9581424aae14a6b748c298cddd527a72
parent79e81bca9c11b35bbc4522fbe8117dc0b425ccc7 (diff)
parent34d6ea560d3935eef6e53e93d5bb7ba1a8148965 (diff)
downloadpackages_apps_Settings-eccc9b39626c525763e5590728f413e4d7ff8cf5.zip
packages_apps_Settings-eccc9b39626c525763e5590728f413e4d7ff8cf5.tar.gz
packages_apps_Settings-eccc9b39626c525763e5590728f413e4d7ff8cf5.tar.bz2
Fix crash in Settings from uninstall am: 6e2e8e17cf
am: 34d6ea560d * commit '34d6ea560d3935eef6e53e93d5bb7ba1a8148965': Fix crash in Settings from uninstall
-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) {