File tree Expand file tree Collapse file tree 3 files changed +0
-36
lines changed
lib/java/com/google/android/material/snackbar
tests/javatests/com/google/android/material/snackbar Expand file tree Collapse file tree 3 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -823,10 +823,6 @@ void onLayoutChange() {
823823 }
824824
825825 private void showViewImpl () {
826- if (ViewCompat .getAccessibilityPaneTitle (view ) == null ) {
827- ViewCompat .setAccessibilityPaneTitle (
828- view , getContext ().getString (R .string .snackbar_accessibility_pane_title ));
829- }
830826 if (shouldAnimate ()) {
831827 // If animations are enabled, animate it in
832828 animateViewIn ();
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2929import static com .google .android .material .testutils .TestUtilsActions .setLayoutDirection ;
3030import static org .hamcrest .Matchers .not ;
3131import static org .hamcrest .core .AllOf .allOf ;
32- import static org .junit .Assert .assertEquals ;
3332import static org .junit .Assert .assertFalse ;
3433import static org .junit .Assert .assertTrue ;
3534import static org .mockito .ArgumentMatchers .any ;
@@ -400,17 +399,6 @@ public void testMultipleCallbacksWithRemoval() throws Throwable {
400399 .onDismissed (snackbar , BaseTransientBottomBar .BaseCallback .DISMISS_EVENT_MANUAL );
401400 }
402401
403- @ Test
404- public void testAccessibilityPaneTitle () throws Throwable {
405- final Snackbar snackbar =
406- Snackbar .make (coordinatorLayout , MESSAGE_TEXT , Snackbar .LENGTH_INDEFINITE )
407- .setAction (ACTION_TEXT , mock (View .OnClickListener .class ));
408- SnackbarUtils .showTransientBottomBarAndWaitUntilFullyShown (snackbar );
409- assertEquals (
410- snackbar .getContext ().getString (R .string .snackbar_accessibility_pane_title ),
411- ViewCompat .getAccessibilityPaneTitle (snackbar .getView ()).toString ());
412- }
413-
414402 @ Test
415403 public void testDefaultContext_usesAppCompat () throws Throwable {
416404 final Snackbar snackbar =
You can’t perform that action at this time.
0 commit comments