diff --git a/app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java b/app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java index c094536..4e9b880 100644 --- a/app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java +++ b/app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java @@ -480,6 +480,7 @@ public class BookmarkSettingsFragment extends PreferenceFragment implements Pref SubscriptionUtils.safeUnsubscribe(mImportSubscription); mImportSubscription = BookmarkExporter.importBookmarksFromFile(mFileList[which]) .subscribeOn(Schedulers.io()) + .observeOn(Schedulers.main()) .subscribe(new SingleOnSubscribe>() { @Override public void onItem(@Nullable final List importList) { @@ -487,6 +488,7 @@ public class BookmarkSettingsFragment extends PreferenceFragment implements Pref Preconditions.checkNonNull(importList); mBookmarkManager.addBookmarkList(importList) + .subscribeOn(Schedulers.io()) .observeOn(Schedulers.main()) .subscribe(new CompletableOnSubscribe() { @Override