-
Notifications
You must be signed in to change notification settings - Fork 2
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
[NSDK-245] Fix Password Reset Doesn’t Work and WebView Redirection Issue #126
Conversation
WebView(view.context).apply { | ||
setBackgroundColor(Color.TRANSPARENT) | ||
layoutParams = | ||
ViewGroup.LayoutParams( | ||
ViewGroup.LayoutParams.MATCH_PARENT, | ||
ViewGroup.LayoutParams.MATCH_PARENT, | ||
) |
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.
Main changes
} finally { | ||
return true | ||
val popupWebView = | ||
WebView(view.context).apply { |
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 refactored it a bit using the scope function apply
For object configuration, we can use apply
settings.javaScriptEnabled = true | ||
settings.javaScriptCanOpenWindowsAutomatically = true | ||
settings.setSupportMultipleWindows(true) | ||
settings.setDomStorageEnabled(true) |
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.
One of the main changes
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
🔗 Related Links
⬅️ As Is
https://docs.google.com/presentation/d/1Cloxn7s0hsTMIDfznjPfBuXqAXMQUjXgKIwgyjoqk9c/edit#slide=id.g3210edc6694_0_5
➡️ To Be
Screen.Recording.2024-12-18.at.0.41.19.mov
Screen.Recording.2024-12-18.at.1.09.42.mov
☑️ Checklist
Log.d
etc are removedproduction