summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/qs
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2015-07-14 13:36:30 -0400
committerJulia Reynolds <juliacr@google.com>2015-07-14 13:56:03 -0400
commitb8a46a6c77bcb4a6d837c6ddfc4418a21022949a (patch)
treefe307e96cd2b32f15b92f89dbe7d81c549016996 /packages/SystemUI/src/com/android/systemui/qs
parentc7fd3462a2699f73d5f2ba6d863d8be4ddd570a9 (diff)
downloadframeworks_base-b8a46a6c77bcb4a6d837c6ddfc4418a21022949a.zip
frameworks_base-b8a46a6c77bcb4a6d837c6ddfc4418a21022949a.tar.gz
frameworks_base-b8a46a6c77bcb4a6d837c6ddfc4418a21022949a.tar.bz2
Pass wifi ap state through to tile when receiver triggered.
Bug: 22450078 Change-Id: I9b339aa2238a7427291bfdc2ef6aab58dcdb5cf3
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs')
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java
index f28a24b..ddde106 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java
@@ -94,7 +94,11 @@ public class HotspotTile extends QSTile<QSTile.BooleanState> {
state.visible = mController.isHotspotSupported() && mUsageTracker.isRecentlyUsed();
state.label = mContext.getString(R.string.quick_settings_hotspot_label);
- state.value = mController.isHotspotEnabled();
+ if (arg instanceof Boolean) {
+ state.value = (boolean) arg;
+ } else {
+ mController.isHotspotEnabled();
+ }
state.icon = state.visible && state.value ? mEnable : mDisable;
}
@@ -120,7 +124,7 @@ public class HotspotTile extends QSTile<QSTile.BooleanState> {
private final class Callback implements HotspotController.Callback {
@Override
public void onHotspotChanged(boolean enabled) {
- refreshState();
+ refreshState(enabled);
}
};