summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-06-26 11:31:01 -0700
committerSteve Kondik <shade@chemlab.org>2013-06-26 11:31:01 -0700
commit1ea6dc4eae311f75a0a63dd06c55dad156eb3d78 (patch)
treec4a641594ab07ff612bbeaf3dc1c9301ebc247eb /src
parenta6eafbbe45a934131d5faf8d68134205c6929c91 (diff)
downloadpackages_apps_settings-1ea6dc4eae311f75a0a63dd06c55dad156eb3d78.zip
packages_apps_settings-1ea6dc4eae311f75a0a63dd06c55dad156eb3d78.tar.gz
packages_apps_settings-1ea6dc4eae311f75a0a63dd06c55dad156eb3d78.tar.bz2
privacy guard: Fix crash when uninstalling an app
* Don't try to update the privacy guard flag while refreshing after an uninstall since the PM will throw an exception at us. Change-Id: Idadb99fefc2861e871f6206b08c844dda742fa68
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/applications/InstalledAppDetails.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java
index 36adae2..416c92f 100644
--- a/src/com/android/settings/applications/InstalledAppDetails.java
+++ b/src/com/android/settings/applications/InstalledAppDetails.java
@@ -852,6 +852,12 @@ public class InstalledAppDetails extends Fragment
}
}
+
+ // only setup the privacy guard setting if we didn't get uninstalled
+ if (!mMoveInProgress) {
+ initPrivacyGuardButton();
+ }
+
return true;
}
@@ -992,7 +998,6 @@ public class InstalledAppDetails extends Fragment
initDataButtons();
initMoveButton();
initNotificationButton();
- initPrivacyGuardButton();
} else {
mMoveAppButton.setText(R.string.moving);
mMoveAppButton.setEnabled(false);