Skip to content

Commit 3f9d1c1

Browse files
DaneshGodFox
authored andcommitted
GpsQuickTile : Set label correctly
Apply label onPostCreate Change-Id: Id7fd61fa9ab37257b81167e53c7976310543ea94
1 parent 8531c09 commit 3f9d1c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/SystemUI/src/com/android/systemui/quicksettings

packages/SystemUI/src/com/android/systemui/quicksettings/GPSTile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public GPSTile(Context context, LayoutInflater inflater,
3434
LocationController controller = new LocationController(mContext);
3535
controller.addStateChangedCallback(this);
3636

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

4039
mOnClick = new OnClickListener() {
@@ -64,6 +63,7 @@ public void onReceive(Context context, Intent intent) {
6463

6564
@Override
6665
void onPostCreate() {
66+
setGenericLabel();
6767
applyGPSChanges();
6868
super.onPostCreate();
6969
}

0 commit comments

Comments
 (0)