Talkback read unlocked split shade as QS
Handling the special case that in unlocked split shade, though QS is expanded, we want to call it "QS & notification shade" Fixes: 267830416 Test: manual Change-Id: I82e9076d2057171d436ceb5e60c370df69a80bf3
This commit is contained in:
@@ -479,6 +479,8 @@
|
||||
<string name="accessibility_desc_notification_shade">Notification shade.</string>
|
||||
<!-- Content description for the quick settings panel (not shown on the screen). [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_desc_quick_settings">Quick settings.</string>
|
||||
<!-- Content description for the split notification shade that also includes QS (not shown on the screen). [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_desc_qs_notification_shade">Quick settings and Notification shade.</string>
|
||||
<!-- Content description for the lock screen (not shown on the screen). [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_desc_lock_screen">Lock screen.</string>
|
||||
<!-- Content description for the work profile lock screen. This prevents work profile apps from being used, but personal apps can be used as normal (not shown on the screen). [CHAR LIMIT=NONE] -->
|
||||
|
||||
@@ -2206,7 +2206,12 @@ public final class NotificationPanelViewController implements Dumpable {
|
||||
&& mQsController.getFullyExpanded()) {
|
||||
// Upon initialisation when we are not layouted yet we don't want to announce that we
|
||||
// are fully expanded, hence the != 0.0f check.
|
||||
return mResources.getString(R.string.accessibility_desc_quick_settings);
|
||||
if (mSplitShadeEnabled) {
|
||||
// In split shade, QS is expanded but it also shows notifications
|
||||
return mResources.getString(R.string.accessibility_desc_qs_notification_shade);
|
||||
} else {
|
||||
return mResources.getString(R.string.accessibility_desc_quick_settings);
|
||||
}
|
||||
} else if (mBarState == KEYGUARD) {
|
||||
return mResources.getString(R.string.accessibility_desc_lock_screen);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user