From b8bf7017b10c8dfc9f24a97570c9d50f8ad76439 Mon Sep 17 00:00:00 2001 From: David Christie Date: Wed, 9 Oct 2013 19:12:32 -0700 Subject: [PATCH] Refresh quicksettings location tile text when language changes -b/11157526 Change-Id: I2174a04edad15feffb9cf3b124b4e3f997d9070e --- .../systemui/statusbar/phone/QuickSettingsModel.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 e6823ac7d2ffc..2026102081856 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