From 4e8ea212795ffa340c90c41dcee8a305bd6283d6 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Tue, 4 May 2021 12:17:01 -0400 Subject: Change secondary label for Work mode tile Test: manual Fixes: 187155474 Change-Id: I5eade3390fba20ef0002b024a3dbc1eb25a868b5 --- packages/SystemUI/res/values/strings.xml | 6 ++++-- .../SystemUI/src/com/android/systemui/qs/tiles/WorkModeTile.java | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 673a03ddac4e..5c001912e655 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -690,11 +690,11 @@ Screen casting stopped. - Work mode off. + Work mode paused. Work mode on. - Work mode turned off. + Work mode turned paused. Work mode turned on. @@ -954,6 +954,8 @@ off. "Work profile" 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] --> Work profile + + Paused Night Light diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/WorkModeTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/WorkModeTile.java index ef2c1c903a85..7bde64b3e761 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/WorkModeTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/WorkModeTile.java @@ -129,6 +129,8 @@ public class WorkModeTile extends QSTileImpl 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); } @Override -- cgit v1.2.3-59-g8ed1b