-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
#4083 fixed external link warning when user wants to make a donation #4133
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.
@viditpawar0 We have the DonationPopup
functionality as well which we have recently added, which shows on the reader screen. So when the user clicks on the "Make a donation" button this method calls
kiwix-android/core/src/main/java/org/kiwix/kiwixmobile/core/main/CoreReaderFragment.kt
Line 1676 in 9fc6e66
override fun openExternalUrl(intent: Intent) { |
According to your existing code, it will work fine with the Kiwix app, but for custom apps, we have overrided this method in CustomReaderFragment
to make custom behavior according to configuration. So we have to make the changes there as well so that when while user clicks on the donation button in custom apps this popup will not show.
Apart from these changes: The test cases are falling due to this change specially topLevelDestinationTest
so can you please fix that?
Sure, I'll do that. |
All the requested changes have been done. Summary: -
|
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.
@viditpawar0 Thanks for making the changes. Please see comments.
app/src/androidTest/java/org/kiwix/kiwixmobile/main/TopLevelDestinationTest.kt
Show resolved
Hide resolved
custom/src/main/java/org/kiwix/kiwixmobile/custom/main/CustomMainActivity.kt
Outdated
Show resolved
Hide resolved
Okay, made the required changes |
…tion for custom apps
…aderFragment.kt
…ot for donation
427c5bc
to
393d645
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.
@viditpawar0 Thanks for making the changes. @kelson42 LGTM.
Fixes #4083
Fixed external link warning when user wants to make a donation