Merge "remove accessibility label from ExpandableNotificationRow when snoozed" into tm-qpr-dev am: 6dbcedc143
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19416246 Change-Id: Iae3bb16decd91ceea501703e2113fc32cebd4832 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1909,6 +1909,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
* @param isEnabled whether the content views should be enabled for accessibility
|
* @param isEnabled whether the content views should be enabled for accessibility
|
||||||
*/
|
*/
|
||||||
private void updateContentAccessibilityImportanceForGuts(boolean isEnabled) {
|
private void updateContentAccessibilityImportanceForGuts(boolean isEnabled) {
|
||||||
|
updateAccessibilityImportance(isEnabled);
|
||||||
|
|
||||||
if (mChildrenContainer != null) {
|
if (mChildrenContainer != null) {
|
||||||
updateChildAccessibilityImportance(mChildrenContainer, isEnabled);
|
updateChildAccessibilityImportance(mChildrenContainer, isEnabled);
|
||||||
}
|
}
|
||||||
@@ -1923,6 +1925,15 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updates whether this view is important for accessibility based on {@code isEnabled}.
|
||||||
|
*/
|
||||||
|
private void updateAccessibilityImportance(boolean isEnabled) {
|
||||||
|
setImportantForAccessibility(isEnabled
|
||||||
|
? View.IMPORTANT_FOR_ACCESSIBILITY_AUTO
|
||||||
|
: View.IMPORTANT_FOR_ACCESSIBILITY_NO);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates whether the given childView is important for accessibility based on
|
* Updates whether the given childView is important for accessibility based on
|
||||||
* {@code isEnabled}.
|
* {@code isEnabled}.
|
||||||
|
|||||||
Reference in New Issue
Block a user