Skip to content

Commit

Permalink
Improve #2789
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Sep 14, 2023
1 parent fd3473a commit 62b2d53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@
android:name="net.bible.android.view.activity.bookmark.ManageLabels"
android:configChanges="keyboardHidden|orientation|screenSize|locale"
android:label="@string/manage_labels"
android:parentActivityName="net.bible.android.view.activity.bookmark.Bookmarks" />
android:parentActivityName="net.bible.android.view.activity.bookmark.Bookmarks"
/>
<activity
android:name="net.bible.android.view.activity.navigation.ChooseDictionaryWord"
android:configChanges="keyboardHidden|orientation|screenSize|locale"
Expand Down Expand Up @@ -236,7 +237,8 @@
android:name="net.bible.android.view.activity.download.DownloadActivity"
android:configChanges="keyboardHidden|orientation|screenSize|locale"
android:label="@string/download"
android:parentActivityName="net.bible.android.view.activity.page.MainBibleActivity" />
android:parentActivityName=".StartupActivity"
/>
<activity
android:name="net.bible.android.view.activity.download.ProgressStatus"
android:configChanges="keyboardHidden|orientation|screenSize|locale"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ class ChooseDocument : DocumentSelectionBase(R.menu.choose_document_menu, R.menu
try {
if (downloadControl.checkDownloadOkay()) {
val handlerIntent = Intent(this, DownloadActivity::class.java)
val requestCode = IntentHelper.UPDATE_SUGGESTED_DOCUMENTS_ON_FINISH
startActivityForResult(handlerIntent, requestCode)

// do not return here after download
finish()
lifecycleScope.launch {
awaitIntent(handlerIntent)
ABEventBus.post(MainBibleActivity.UpdateMainBibleActivityDocuments())
reloadDocuments()
}
}
} catch (e: Exception) {
Log.e(TAG, "Error sorting bookmarks", e)
Expand All @@ -166,6 +166,7 @@ class ChooseDocument : DocumentSelectionBase(R.menu.choose_document_menu, R.menu
lifecycleScope.launch {
awaitIntent(intent)
ABEventBus.post(MainBibleActivity.UpdateMainBibleActivityDocuments())
reloadDocuments()
}
}
}
Expand Down

0 comments on commit 62b2d53

Please sign in to comment.