Change state string for Work mode tile

Use "Paused" when the tile is off.

Test: manual, create a managed profile and toggle
Fixes: 291870532
Change-Id: Ib67dbfc1c12d3a8eb42653868365726aa40df12d
This commit is contained in:
Fabián Kozynski
2023-07-24 13:57:23 -04:00
parent 8783793c96
commit db4d60e460
2 changed files with 6 additions and 0 deletions

View File

@@ -743,6 +743,9 @@
off. This means a separate profile on a user's phone that's specifically for their
work apps and managed by their company. "Work" is used as an adjective. [CHAR LIMIT=NONE] -->
<string name="quick_settings_work_mode_label">Work apps</string>
<!-- QuickSettings: Subtitle for the Work profile Quick Settings tile when it's in the off
state. This corresponds to the work profile not being currently accessible. [CHAR LIMIT=20] -->
<string name="quick_settings_work_mode_paused_state">Paused</string>
<!-- QuickSettings: Label for the toggle to activate Night display (renamed "Night Light" with title caps). [CHAR LIMIT=20] -->
<string name="quick_settings_night_display_label">Night Light</string>
<!-- QuickSettings: Secondary text for when the Night Light will be enabled at sunset. [CHAR LIMIT=20] -->

View File

@@ -141,6 +141,9 @@ public class WorkModeTile extends QSTileImpl<BooleanState> implements
state.contentDescription = state.label;
state.expandedAccessibilityClassName = Switch.class.getName();
state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE;
state.secondaryLabel = state.value
? ""
: mContext.getString(R.string.quick_settings_work_mode_paused_state);
}
@Override