diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 1286f87aeb2..99a2e91a7da 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -638,6 +638,7 @@
- notification volume
- bluetooth volume
- keep awake
+ - monitor location
@@ -683,6 +684,7 @@
- Notification volume
- Bluetooth volume
- Keep awake
+ - Location
diff --git a/src/com/android/settings/applications/AppOpsState.java b/src/com/android/settings/applications/AppOpsState.java
index d20b6d9eac2..61ed2f46bf4 100644
--- a/src/com/android/settings/applications/AppOpsState.java
+++ b/src/com/android/settings/applications/AppOpsState.java
@@ -101,11 +101,13 @@ public class AppOpsState {
AppOpsManager.OP_FINE_LOCATION,
AppOpsManager.OP_GPS,
AppOpsManager.OP_WIFI_SCAN,
- AppOpsManager.OP_NEIGHBORING_CELLS },
+ AppOpsManager.OP_NEIGHBORING_CELLS,
+ AppOpsManager.OP_MONITOR_LOCATION },
new boolean[] { true,
true,
false,
false,
+ false,
false }
);
diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
index 39cf2c6595d..5dfbcdae4c0 100644
--- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java
+++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
@@ -909,6 +909,7 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable {
BatterySipper bs;
synchronized (mRequestQueue) {
if (mRequestQueue.isEmpty() || mAbort) {
+ mHandler.sendEmptyMessage(MSG_REPORT_FULLY_DRAWN);
mRequestThread = null;
return;
}
@@ -919,6 +920,7 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable {
}
static final int MSG_UPDATE_NAME_ICON = 1;
+ static final int MSG_REPORT_FULLY_DRAWN = 2;
Handler mHandler = new Handler() {
@@ -935,6 +937,9 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable {
pgp.setTitle(bs.name);
}
break;
+ case MSG_REPORT_FULLY_DRAWN:
+ getActivity().reportFullyDrawn();
+ break;
}
super.handleMessage(msg);
}