You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this line, 400ms are added to undoTime to compensate animations.
When using Snackbar#LENGTH_LONG or Snackbar#LENGTH_SHORT (valid values according to the documentation), the snackbar is dismissed almost instantly because its values are 0 and -1.
This could be fixed by using undoTime > 0 ? undoTime + 400 : undoTime or directly comparing those two options. Maybe you could also make the @IntRange annotation start from -1.
The text was updated successfully, but these errors were encountered:
inorichi
changed the title
UndoHelper dismissed quickly with Snackbar predefined lenghts.
UndoHelper dismissed quickly with Snackbar predefined lengths.
Jan 13, 2017
In this line, 400ms are added to
undoTime
to compensate animations.When using
Snackbar#LENGTH_LONG
orSnackbar#LENGTH_SHORT
(valid values according to the documentation), the snackbar is dismissed almost instantly because its values are 0 and -1.This could be fixed by using
undoTime > 0 ? undoTime + 400 : undoTime
or directly comparing those two options. Maybe you could also make the@IntRange
annotation start from -1.The text was updated successfully, but these errors were encountered: