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

Commit fac8fbfb authored by David Christie's avatar David Christie Committed by Android Git Automerger
Browse files

am 10661302: am 6ac67f47: am a6ffa4ef: Merge "Refresh quicksettings location...

am 10661302: am 6ac67f47: am a6ffa4ef: Merge "Refresh quicksettings location tile text when language changes -b/11157526" into klp-dev

* commit '10661302':
  Refresh quicksettings location tile text when language changes -b/11157526
parents 4c0f91c8 10661302
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -433,6 +433,7 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
        refreshBrightnessTile();
        refreshRotationLockTile();
        refreshRssiTile();
        refreshLocationTile();
    }

    // Settings
@@ -705,6 +706,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