diff options
author | David Christie <dnchrist@google.com> | 2013-08-08 21:41:03 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-08 21:41:04 +0000 |
commit | 8ffe17ae32e72e5d872a36d5048bf912d28e766f (patch) | |
tree | 329f039409908670eef52468b9bbfc65cc764ade /services/java/com/android/server/LocationManagerService.java | |
parent | ce65961d4d54aa7a7c24074e79dea32dfa37ea2f (diff) | |
parent | c750c1fb83fbdec895e236dda7207db4da14ec49 (diff) |
Merge "Update gps status icon to be a "high power" location icon. Move icon to right side of the screen and synchronize status with AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION." into klp-dev
Diffstat (limited to 'services/java/com/android/server/LocationManagerService.java')
-rw-r--r-- | services/java/com/android/server/LocationManagerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/java/com/android/server/LocationManagerService.java b/services/java/com/android/server/LocationManagerService.java index cde84dc0c3e3..61752684e1b2 100644 --- a/services/java/com/android/server/LocationManagerService.java +++ b/services/java/com/android/server/LocationManagerService.java @@ -552,8 +552,14 @@ public class LocationManagerService extends ILocationManager.Stub { allowHighPower = false; } } + boolean wasHighPowerMonitoring = mOpHighPowerMonitoring; mOpHighPowerMonitoring = updateMonitoring(allowHighPower, mOpHighPowerMonitoring, AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION); + if (mOpHighPowerMonitoring != wasHighPowerMonitoring) { + // send an intent to notify that a high power request has been added/removed. + Intent intent = new Intent(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); + mContext.sendBroadcastAsUser(intent, UserHandle.ALL); + } } /** |