diff options
| author | 2013-10-15 00:49:13 +0000 | |
|---|---|---|
| committer | 2013-10-15 00:49:14 +0000 | |
| commit | a6ffa4ef021ee35a533bc05205d6add6971cc44a (patch) | |
| tree | ea7246c10f9de7282b57fc30fc68155080c97be4 | |
| parent | f6f545f6a7601c9c0b7f6132488cced1d3a0d78b (diff) | |
| parent | b8bf7017b10c8dfc9f24a97570c9d50f8ad76439 (diff) | |
Merge "Refresh quicksettings location tile text when language changes -b/11157526" into klp-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java index e6823ac7d2ff..202610208185 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java @@ -310,6 +310,7 @@ class QuickSettingsModel implements BluetoothStateChangeCallback, refreshBrightnessTile(); refreshRotationLockTile(); refreshRssiTile(); + refreshLocationTile(); } // Settings @@ -582,6 +583,12 @@ class QuickSettingsModel implements BluetoothStateChangeCallback, mLocationCallback.refreshView(mLocationTile, mLocationState); } + void refreshLocationTile() { + if (mLocationTile != null) { + onLocationSettingsChanged(mLocationState.enabled); + } + } + @Override public void onLocationSettingsChanged(boolean locationEnabled) { int textResId = locationEnabled ? R.string.quick_settings_location_label |