-
-
Notifications
You must be signed in to change notification settings - Fork 727
Remove allowMainThreadQueries and update DAO functions #5730
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
Conversation
This is ready for review. The changes affect all reading list saving behaviors in the app. |
This reverts commit 586d455.
app/src/main/java/org/wikipedia/readinglist/ReadingListBehaviorsUtil.kt
Outdated
Show resolved
Hide resolved
@@ -77,30 +80,31 @@ object ReadingListsExportImportHelper : BaseActivity.Callback { | |||
.setStyle(NotificationCompat.BigTextStyle().bigText(context.getString(R.string.reading_list_notification_text, numOfLists))) | |||
} | |||
|
|||
fun importLists(activity: BaseActivity, jsonString: String) { | |||
fun importLists(activity: AppCompatActivity, jsonString: String) { |
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'm wondering if it might be cleaner to convert this into a suspend function and launch it using viewLifecycleOwner.lifecycleScope in the fragment, instead of passing AppCompatActivity for launching the coroutine, what do you think? and maybe for other functions as well.
Phabricator:
https://phabricator.wikimedia.org/T397993