Update to show new location monitoring op.

Change-Id: I921e95327c743c5b9b89bfe5a94beca67bfdb7de
This commit is contained in:
Dianne Hackborn
2013-07-09 18:19:11 -07:00
parent 9333cc7de5
commit 15ab7758df
3 changed files with 10 additions and 1 deletions

View File

@@ -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);
}