diff options
author | Amith Yamasani <yamasani@google.com> | 2013-09-03 17:44:49 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2013-09-03 17:44:49 -0700 |
commit | e63cc20570e7229bc72040d01b70349d6ae460f6 (patch) | |
tree | 1fe6cb6bc48c337393769489cae9046d6662391e /src/com/android/settings | |
parent | 6dde146df030dfada1a9e112621e97424a2b6e3c (diff) | |
download | packages_apps_Settings-e63cc20570e7229bc72040d01b70349d6ae460f6.tar.gz packages_apps_Settings-e63cc20570e7229bc72040d01b70349d6ae460f6.tar.bz2 packages_apps_Settings-e63cc20570e7229bc72040d01b70349d6ae460f6.zip |
Pass correct user id for the extra
This was causing PrintManagerService to get a broadcast with an incorrect
userid and ended up crashing the SettingsProvider.
Bug: 10608503
Change-Id: I4693de181ddfa599d685ac9bd16ac15cea8b2e52
Diffstat (limited to 'src/com/android/settings')
-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 e9b8106ee..ca159dc3c 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageDetail.java +++ b/src/com/android/settings/fuelgauge/PowerUsageDetail.java @@ -36,6 +36,7 @@ import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Bundle; import android.os.Process; +import android.os.UserHandle; import android.preference.PreferenceActivity; import android.provider.Settings; import android.text.TextUtils; @@ -470,7 +471,7 @@ public class PowerUsageDetail extends Fragment implements Button.OnClickListener Uri.fromParts("package", mPackages[0], null)); intent.putExtra(Intent.EXTRA_PACKAGES, mPackages); intent.putExtra(Intent.EXTRA_UID, mUid); - intent.putExtra(Intent.EXTRA_USER_HANDLE, mUid); + intent.putExtra(Intent.EXTRA_USER_HANDLE, UserHandle.getUserId(mUid)); getActivity().sendOrderedBroadcast(intent, null, mCheckKillProcessesReceiver, null, Activity.RESULT_CANCELED, null, null); } |