Skip to content

Commit 5cb92c8

Browse files
leticiarossiimhappi
authored andcommitted
[Snackbar] Made snackbar javadoc more clear of how its dismissing works.
PiperOrigin-RevId: 468494275 (cherry picked from commit 581f734)
1 parent c0e24cd commit 5cb92c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
* bottom of the screen on mobile and lower left on larger devices. Snackbars appear above all other
5353
* elements on screen and only one can be displayed at a time.
5454
*
55-
* <p>They automatically disappear after a timeout or after user interaction elsewhere on the
56-
* screen, particularly after interactions that summon a new surface or activity. Snackbars can be
57-
* swiped off screen.
58-
*
5955
* <p>Snackbars can contain an action which is set via {@link #setAction(CharSequence,
6056
* android.view.View.OnClickListener)}.
6157
*
58+
* <p>Snackbars automatically disappear after a timeout. They can also be dismissed by being swiped
59+
* off screen, by action click, from a new snackbar being displayed, or manually via a call to
60+
* {@link #dismiss()}.
61+
*
6262
* <p>To be notified when a snackbar has been shown or dismissed, you can provide a {@link Callback}
6363
* via {@link BaseTransientBottomBar#addCallback(BaseCallback)}.
6464
*/

0 commit comments

Comments
 (0)