Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8bf7017 authored by David Christie's avatar David Christie
Browse files

Refresh quicksettings location tile text when language changes

-b/11157526

Change-Id: I2174a04edad15feffb9cf3b124b4e3f997d9070e
parent ddf5a170
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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