Set tile label when state is updated
If the user changed the language, the tile label was never updated to match. So we should also update the label when the state is changed. Fixes: 153873021 Test: manual - switched languages and verified tile label changed Change-Id: Ibc2706e993673a45b57094bccff8283bd91a6e68
This commit is contained in:
@@ -72,6 +72,7 @@ public class ScreenRecordTile extends QSTileImpl<QSTile.BooleanState>
|
||||
|
||||
state.value = isRecording || isStarting;
|
||||
state.state = (isRecording || isStarting) ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE;
|
||||
state.label = mContext.getString(R.string.quick_settings_screen_record_label);
|
||||
|
||||
if (isRecording) {
|
||||
state.icon = ResourceIcon.get(R.drawable.ic_qs_screenrecord);
|
||||
|
||||
Reference in New Issue
Block a user