diff options
author | Zoltan Szatmary-Ban <szatmz@google.com> | 2014-09-25 10:38:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-25 10:38:40 +0000 |
commit | a2b7bb6be612fc050fc7634815a614f84fcac778 (patch) | |
tree | a28f4a1a1647eba612ecc8bc75f627a7c8546ddc /src/com/android/settings/fuelgauge | |
parent | 7258650efdea447dea6f2f557cb9d2b90df92754 (diff) | |
parent | 9b521f851929ea1f6854654d212937db18cb35af (diff) | |
download | packages_apps_Settings-a2b7bb6be612fc050fc7634815a614f84fcac778.zip packages_apps_Settings-a2b7bb6be612fc050fc7634815a614f84fcac778.tar.gz packages_apps_Settings-a2b7bb6be612fc050fc7634815a614f84fcac778.tar.bz2 |
Merge "Make Force Stop button work for packages of managed profile" into lmp-dev
Diffstat (limited to 'src/com/android/settings/fuelgauge')
-rw-r--r-- | src/com/android/settings/fuelgauge/PowerUsageDetail.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/fuelgauge/PowerUsageDetail.java b/src/com/android/settings/fuelgauge/PowerUsageDetail.java index 3b8ecbe..9dca029 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageDetail.java +++ b/src/com/android/settings/fuelgauge/PowerUsageDetail.java @@ -650,8 +650,9 @@ public class PowerUsageDetail extends Fragment implements Button.OnClickListener if (mPackages == null) return; ActivityManager am = (ActivityManager)getActivity().getSystemService( Context.ACTIVITY_SERVICE); + final int userId = UserHandle.getUserId(mUid); for (int i = 0; i < mPackages.length; i++) { - am.forceStopPackage(mPackages[i]); + am.forceStopPackageAsUser(mPackages[i], userId); } checkForceStop(); } |