Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo msg timeout #41

Open
mxmilkiib opened this issue Jul 31, 2019 · 4 comments
Open

Undo msg timeout #41

mxmilkiib opened this issue Jul 31, 2019 · 4 comments

Comments

@mxmilkiib
Copy link

I accidentally deleted my first recording when i tried to sweep right to any other screen. I got an Undo message popup, but it disappeared very quickly, just as I had had time enough to register what had happened. I would recommend increasing the timeout to at least 5 seconds.

@JoelleJS
Copy link

I looked into it and unfortunately it isn't possible to simply increase the timeout (Android snackbar durations 😒). The only longer option is to show it until closed manually, which would cause another issue: the recording is actually only deleted when the snackbar is closed, so it's more of a scheduled delete than an undo.

I think an "Are you sure?" popup is a better alternative, but that'll be annoying when you need to delete many recordings, so perhaps a "Don't ask again" option should be added or selecting multiple recordings and deleting should be possible.

@amicloud
Copy link

amicloud commented Jun 12, 2022

@JoCodesThings
Are you sure? Or is the documentation wrong?

 * @param duration How long to display the message. Can be {@link #LENGTH_SHORT}, {@link
   *     #LENGTH_LONG}, {@link #LENGTH_INDEFINITE}, or a custom duration in milliseconds.

@amicloud
Copy link

Actually, I just checked and it works exactly as expected with a custom duration. Tested with the obviously noticeable values of 1000 millis and 100,000 millis.

@JoelleJS
Copy link

@amicloud Could have sworn that wasn't possible, but that's good news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants