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

don't say 'Done' when we do not know we're done #3010

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

r10s
Copy link
Member

@r10s r10s commented Apr 27, 2024

adding a webxdc-shortcut to the home screen is sometimes a request only,
the user has to confirm and/or there is a subsequent dialog.

so, when requestPinShortcut() returns successfully, saying "Done" as the result of "Add to Home Screen" is often wrong from the view of the user.

however, some feedback is still needed for the cases there are no dialogs.

saying "One moment..." covers both cases sufficiently.



this is a bit misleading

(came over that when playing with webxdc during review of #3008 )

@r10s r10s requested a review from adbenitez April 27, 2024 20:15
adding a shortcut is sometimes a request only,
the user has to confirm and/or there is a subsequent dialog.

so, when `requestPinShortcut()` returns successfully,
saying "Done" as the result of "Add to Home Screen" is often wrong
from the view of the user.

however, some feedback is still needed for the cases there are no dialogs.

saying "One moment..." covers both cases sufficiently.
@r10s r10s force-pushed the r10s/tweak-shortcut-feedback branch from 22f97e4 to 7af087a Compare April 27, 2024 20:17
Copy link

To test the changes in this pull request, install this apk:
📦 app-preview.apk

@r10s r10s merged commit 97b84e1 into main Apr 27, 2024
2 checks passed
@r10s r10s deleted the r10s/tweak-shortcut-feedback branch April 27, 2024 20:44
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

Successfully merging this pull request may close these issues.

2 participants