-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Refactored DeckPickerWidget
to handle empty state visibility.
#17041
Conversation
What does this look like? |
added in the PR description. |
I reviewed the code and noticed an issue with the visibility of empty_deck. I plan to investigate and resolve it when I have more time. |
d260808
to
195965a
Compare
Fixed! |
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.
I think this looks good - after looking through our back stack management though, I'm curious if we are missing a CLEAR_TOP on the Intent for the reviewer though
Otherwise (that is: the bulk of the PR): looks good
AnkiDroid/src/main/java/com/ichi2/widget/deckpicker/DeckPickerWidget.kt
Outdated
Show resolved
Hide resolved
8d767e1
to
c681094
Compare
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.
Fantastic, I think this looks pretty good and from the video it looks pretty good to me
If you are curious at all - and I mention it because I have seen you do related work so I think you might be interested? - you might look at #17073 to consolidate our usage of these flags...
AnkiDroid/src/main/java/com/ichi2/widget/deckpicker/DeckPickerWidget.kt
Outdated
Show resolved
Hide resolved
…ing users to reconfigure the widget by clicking the empty state message.
b5d9633
to
451935b
Compare
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.
Is this issue specific to deck picker widget?
I'd have expected it could be the same issue in your card analysis widget, given that it also requires a deck.
If so, I'd appreciate if you could have change both widgets at once, idially without copy pasting too much code
Will create a separate PR for |
451935b
to
bca69ae
Compare
of empty_widget Text View.
bca69ae
to
589eff6
Compare
Updated preview in |
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.
LGTM, thanks!
Purpose / Description
Handle empty state visibility, allowing users to reconfigure the widget by clicking the empty state message in the Deck Picker Widget.
Approach
Handled similar to that Card Analysis Widget.
How Has This Been Tested?
Hiid.mp4
Checklist
Please, go through these checks before submitting the PR.