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

Commit 3a2105fb authored by Danesh Mondegarian's avatar Danesh Mondegarian Committed by Ricardo Cerqueira
Browse files

GpsQuickTile : Set label correctly

Apply label onPostCreate

Change-Id: Id7fd61fa9ab37257b81167e53c7976310543ea94
parent 35fc17fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ public class GPSTile extends QuickSettingsTile implements LocationGpsStateChange
        LocationController controller = new LocationController(mContext);
        controller.addStateChangedCallback(this);

        mLabel = mContext.getString(R.string.quick_settings_gps);
        enabled = Settings.Secure.isLocationProviderEnabled(mContentResolver, LocationManager.GPS_PROVIDER);

        mOnClick = new OnClickListener() {
@@ -64,6 +63,7 @@ public class GPSTile extends QuickSettingsTile implements LocationGpsStateChange

    @Override
    void onPostCreate() {
        setGenericLabel();
        applyGPSChanges();
        super.onPostCreate();
    }