File tree 3 files changed +15
-1
lines changed
java/ua/acclorite/book_story/presentation/settings/browse/scan/components
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import ua.acclorite.book_story.R
42
42
import ua.acclorite.book_story.presentation.core.components.common.IconButton
43
43
import ua.acclorite.book_story.presentation.core.components.common.StyledText
44
44
import ua.acclorite.book_story.presentation.core.util.noRippleClickable
45
+ import ua.acclorite.book_story.presentation.core.util.showToast
45
46
import ua.acclorite.book_story.ui.browse.BrowseScreen
46
47
import ua.acclorite.book_story.ui.settings.SettingsEvent
47
48
import ua.acclorite.book_story.ui.settings.SettingsModel
@@ -108,7 +109,14 @@ fun BrowseScanOption() {
108
109
109
110
BrowseScanAction (
110
111
requestPersistableUriPermission = {
111
- persistedUriIntent.launch(null )
112
+ try {
113
+ persistedUriIntent.launch(null )
114
+ } catch (e: Exception ) {
115
+ e.printStackTrace()
116
+
117
+ context.getString(R .string.error_no_file_manager_app)
118
+ .showToast(context, longToast = false )
119
+ }
112
120
}
113
121
)
114
122
}
Original file line number Diff line number Diff line change 40
40
<string name =" error_no_dictionary" >Не знайдено жодного словника.</string >
41
41
<string name =" error_no_browser" >Не знайдено жодного браузера.</string >
42
42
<string name =" error_no_share_app" >Не знайдено застосунка щоб поділитися.</string >
43
+ <string name =" error_no_translator" >Жодного перекладача не знайдено.</string >
44
+ <string name =" error_no_dictionary" >Жодного словника не знайдено.</string >
45
+ <string name =" error_no_browser" >Жодного браузера не знайдено.</string >
46
+ <string name =" error_no_share_app" >Не знайдено застосунок, щоб поділитися.</string >
47
+ <string name =" error_no_file_manager_app" >Не знайдено застосунку для вибору теки.</string >
43
48
<string name =" error_could_not_get_text" >
44
49
Файл порожній, відсутній або недоступний.
45
50
Перевірте файл, налаштування сканування або змініть шлях і спробуйте ще раз.
Original file line number Diff line number Diff line change 61
61
<string name =" error_no_dictionary" >No dictionary app found.</string >
62
62
<string name =" error_no_browser" >No browser app found.</string >
63
63
<string name =" error_no_share_app" >No app to share found.</string >
64
+ <string name =" error_no_file_manager_app" >No app to choose folder found.</string >
64
65
<string name =" error_could_not_get_text" >
65
66
File is empty, missing, or inaccessible.
66
67
Verify the file, scan settings or change the path, then try again.
You can’t perform that action at this time.
0 commit comments