-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Introduce enums in Dialog #17432
Introduce enums in Dialog #17432
Conversation
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.
Doesn't feel like a major improvement, but OK
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/MediaCheckDialog.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/SyncErrorDialog.kt
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
232c8c7
to
49d52c7
Compare
49d52c7
to
1cc704d
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.
> Task :AnkiDroid:ktlintMainSourceSetCheck FAILED
/home/runner/work/Anki-Android/Anki-Android/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/SyncErrorDialog.kt:264:75 Missing spacing before "}"
1cc704d
to
91bd648
Compare
91bd648
to
06b9f64
Compare
06b9f64
to
7016267
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.
okay by me, if David agrees now
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.
Blocker: one comment I don't understand
Everything else is nitpicks/implementer's choice
There's a lot of code churn from adding Type.
inside the class which defined it, which doesn't seem necessary and is more verbose than it was
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/MediaCheckDialog.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/MediaCheckDialog.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/MediaCheckDialog.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/MediaCheckDialog.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/SyncErrorDialog.kt
Outdated
Show resolved
Hide resolved
I'm confused.
so I added the explicit Visibly it's not what you were looking for. Can you clarify where I should have used the |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
7016267
to
5d41c2a
Compare
Thanks |
Co-authored-by: David Allison <[email protected]>
Use an enum and constants Co-authored-by: David Allison <[email protected]>
5d41c2a
to
a86e936
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.
Cheers! Force pushed to fix a CI issue with the new ktLint not being applied
In order to improve typing