We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 316c68e commit b526c77Copy full SHA for b526c77
lib/java/com/google/android/material/snackbar/BaseTransientBottomBar.java
@@ -1098,6 +1098,9 @@ void onViewHidden(int event) {
1098
1099
/** Returns true if we should animate the Snackbar view in/out. */
1100
boolean shouldAnimate() {
1101
+ if (accessibilityManager == null) {
1102
+ return true;
1103
+ }
1104
int feedbackFlags = AccessibilityServiceInfo.FEEDBACK_SPOKEN;
1105
List<AccessibilityServiceInfo> serviceList =
1106
accessibilityManager.getEnabledAccessibilityServiceList(feedbackFlags);
0 commit comments