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
Issue 1332: Multiple numeric dialogs appearing #1356
Issue 1332: Multiple numeric dialogs appearing #1356
Conversation
Thanks for tackling this bug, @kalina559. I agree it's not serious, but it would still be nice to fix it. I think keeping track of the number picker visibility in I would suggest the following instead. Whoever calls
|
…github.com/kalina559/uhabits into feature/case_1332_multiple_numeric_dialogs
I made something between the initial solution and the one you described - we're keeping a reference in a companion object of The only downside to that is that users can see the first dialog for a split second before it gets dismissed. In the first solution the second dialog was prevented from being created if another one already existed, so the UX was a bit better. |
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.
Thanks, that also works. I only have one comment below. Other than that, the PR looks fine to me.
uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/show/ShowHabitActivity.kt
Outdated
Show resolved
Hide resolved
Hey @iSoron, can I merge this? |
@kalina559 I've merged it, thanks! |
Resolves #1332.
I'm not sure about this solution though, as it's a bit of a hack. The bug itself is not that serious - users can just enter the data twice, it's not breaking the app or anything. What do you think @iSoron @hiqua ?
While working on it I also noticed that the issue appears when clicking on the tiles in ListHabitsScreen, I corrected this there as well. Numeric dialog is also shown when using a Checkmark widget, but the issue wasn't appearing there.