Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Address AT issues after domain registration #10101
Address AT issues after domain registration #10101
Changes from 12 commits
0a44f51
2ee6582
e40005e
0f531df
effc139
8fbb918
4093d05
79797c1
d845303
58baf9e
0491d03
5d469e1
afa7ffe
28b3905
066fd32
051dba7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 don't think this is correct. This will work if the
DOMAIN_REGISTRATION_PURPOSE_KEY
is in the intent, if it isn't, it will try to castnull
toDomainRegistrationPurpose
and it will fail becauseDomainRegistrationPurpose
is not nullable. I think we have to cast it toDomainRegistrationPurpose?
or useas? DomainRegistrationPurpose
. This assumption is based on https://kotlinlang.org/docs/reference/typecasts.html#unsafe-cast-operatorDo you really need to keep the
org.wordpress.android.ui.ActivityLauncher#viewDomainRegistrationActivity
? It is unused so theDomainRegistrationPurpose
should always be there. You can changevar domainRegistrationPurpose: DomainRegistrationPurpose? = null
tolateinit var domainRegistrationPurpose: DomainRegistrationPurpose
so it doesn't have to be nullable.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.
Good catch! I added a null guard using
as?
and left it nullable for now, since it will be called usingviewDomainRegistrationActivity
fromdevelop
branch, and I want to reduce conflicts when merging this back into it.I'll change it to
lateinit
in next domain related PR 👍