Skip to content

Commit 0a2735b

Browse files
pekingmehunterstich
authored andcommitted
Automated g4 rollback of changelist 724420450
PiperOrigin-RevId: 731911056
1 parent ed528c6 commit 0a2735b

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

lib/java/com/google/android/material/snackbar/Snackbar.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ public void onDismissed(Snackbar transientBottomBar, @DismissEvent int event) {
116116

117117
@Nullable private BaseCallback<Snackbar> callback;
118118

119-
/**
120-
* This is only used as a temporary flag to opt-out of the new dismissal behavior for Snackbar
121-
* with actions, which will never time out.
122-
*/
123-
@SuppressWarnings("unused")
124-
private boolean useLegacyDismissalBehavior = false;
125-
126119
private Snackbar(
127120
@NonNull Context context,
128121
@NonNull ViewGroup parent,
@@ -375,18 +368,6 @@ public Snackbar setAction(
375368
return this;
376369
}
377370

378-
/**
379-
* Set whether to use the legacy dismissal behavior for Snackbar with actions. This is a temporary
380-
* flag to allow apps to migrate to the new behavior, which will never timeout the Snackbar with
381-
* actions. Do not use this for new usages.
382-
*/
383-
@NonNull
384-
@CanIgnoreReturnValue
385-
public Snackbar setUseLegacyDismissalBehavior(boolean useLegacyDismissalBehavior) {
386-
this.useLegacyDismissalBehavior = useLegacyDismissalBehavior;
387-
return this;
388-
}
389-
390371
@Override
391372
@Duration
392373
public int getDuration() {

0 commit comments

Comments
 (0)