-
Notifications
You must be signed in to change notification settings - Fork 169
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
Add confirmation on exit #998
Conversation
Instead of using toasts, could we use a dialog? Other apps with a similar feature will pop up a "are you sure you want to exit?" dialog, usually with a "don't ask me again" checkbox option, and an exit and cancel button. |
I might have been the one user of that dialog option, lol. |
app/src/main/res/values/strings.xml
Outdated
@@ -333,4 +333,5 @@ | |||
<string name="dialogs_top_nine_month">Top Nine Months</string> | |||
<string name="post_listing_view_source">View Source</string> | |||
<string name="post_listing_view_original">View Original</string> | |||
<string name="back_warning">Repeat action to exit</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there are other actions besides pressing the back button/gesture equivalent that we would need to be concerned about? If not, "Press back again to exit" sounds more natural to me. Otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I didn't want to put tap because of the back gesture, but that could work too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya I also like "Press back again to exit"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To break the tie 😆 , I think the simple toast works fine, and an extra setting is probably overkill.
app/src/main/res/values/strings.xml
Outdated
@@ -333,4 +333,5 @@ | |||
<string name="dialogs_top_nine_month">Top Nine Months</string> | |||
<string name="post_listing_view_source">View Source</string> | |||
<string name="post_listing_view_original">View Original</string> | |||
<string name="back_warning">Repeat action to exit</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya I also like "Press back again to exit"
I was going to add the setting, it can always be expanded to add the dialog. |
# Conflicts: # app/src/main/java/com/jerboa/MainActivity.kt
# Conflicts: # app/src/main/res/values/strings.xml
Added all the options bvTO7H2xxg.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it
Adds a confirmation when trying to exit the app, to prevent accidental exits. I read somewhere that someone wanted this. Can't find the issue back though.
studio64_dsk4RgROYw.mp4