summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorLars Greiss <kufikugel@googlemail.com>2013-07-05 01:02:58 +0200
committerLars Greiss <kufikugel@googlemail.com>2013-07-05 01:21:50 +0200
commitc22d46086ac4a8ef2074530ef342cdf8578198cf (patch)
tree45669fddf26f792c0b284c9a0abba2b2dc85f87e /services
parent71e084350ea0e4fc780ef485607a61299da7c4d6 (diff)
downloadframeworks_base-c22d46086ac4a8ef2074530ef342cdf8578198cf.zip
frameworks_base-c22d46086ac4a8ef2074530ef342cdf8578198cf.tar.gz
frameworks_base-c22d46086ac4a8ef2074530ef342cdf8578198cf.tar.bz2
Frameworks: privacy guard fix UI freeze
randomly sometimes the complete UI freezes when toggle privacy guard. Move out the forcekill from syncronized to fix it so that it kills the app when all threads are open and they can react to the forcekill which cannot result then in unknown states cheers Change-Id: I81514dc5ca9149477ee747a7d90720b83f741baa
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/pm/PackageManagerService.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java
index 7702deb..f134854 100644
--- a/services/java/com/android/server/pm/PackageManagerService.java
+++ b/services/java/com/android/server/pm/PackageManagerService.java
@@ -9083,11 +9083,11 @@ public class PackageManagerService extends IPackageManager.Stub {
}
pkgSetting.setPrivacyGuard(enabled, userId);
mSettings.writePackageRestrictionsLPr(userId);
- try {
- ActivityManagerNative.getDefault().forceStopPackage(packageName, userId);
- } catch (RemoteException e) {
- //nothing
- }
+ }
+ try {
+ ActivityManagerNative.getDefault().forceStopPackage(packageName, userId);
+ } catch (RemoteException e) {
+ //nothing
}
}