-
Notifications
You must be signed in to change notification settings - Fork 1.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
AddCategoryFragment.java
to AddCategoryFragment.kt
#20980
AddCategoryFragment.java
to AddCategoryFragment.kt
#20980
Conversation
add category fragment
AddCategoryFragment.java
to AddCategoryFragment.kt
Quality Gate passedIssues Measures |
@irfano -- Ready for review. |
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.
Thank you for helping to increase Kotlin usage in the repository. I reviewed the PR and added some comments for you.
WordPress/src/main/java/org/wordpress/android/ui/posts/AddCategoryFragment.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/posts/AddCategoryFragment.kt
Outdated
Show resolved
Hide resolved
} | ||
} | ||
|
||
@Suppress("Deprecation") |
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.
We shouldn't add any new @Suppress
when migrating to Kotlin. You can use Bundle.getSerializableCompat() for getSerializable()
. Check usages of it in other Kotlin classes.
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.
Fixed in the latest commit 👍
WordPress/src/main/java/org/wordpress/android/ui/posts/AddCategoryFragment.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/posts/AddCategoryFragment.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/posts/AddCategoryFragment.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/posts/AddCategoryFragment.kt
Outdated
Show resolved
Hide resolved
Co-Authored-By: Irfan Ömür <2471769+irfano@users.noreply.github.com>
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! 👍🏻 Thank you for addressing my comments and contributing to the repository.
Description
This pull request aims to convert
AddCategoryFragment.java
toAddCategoryFragment.kt
.Fixes/Related
Screenshots/ Video
addcategorykt.mp4
Steps to reproduce
CollapseFullScreenDialogFragment
is reproduced 🥇PR Submission Checklist:
RELEASE-NOTES.txt
if necessary.Testing Checklist (strike-out the not-applying and unnecessary ones):