am a6ffa4ef: Merge "Refresh quicksettings location tile text when language changes -b/11157526" into klp-dev
* commit 'a6ffa4ef021ee35a533bc05205d6add6971cc44a': Refresh quicksettings location tile text when language changes -b/11157526
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user