Merge "Change state string for Work mode tile" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9e3a204252
@@ -747,6 +747,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] -->
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user