Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 0103c5d

Browse files
committed
rework exception message thrown in Library Settings
1 parent cf3a957 commit 0103c5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sampleapp/src/main/java/io/matthewnelson/sampleapp/ui/fragments/settings/library/SettingsLibraryFragment.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ class SettingsLibraryFragment : Fragment() {
154154
} catch (e: Exception) {
155155
e.message?.let {
156156
val msg = if (it.contains(BackgroundPolicy.RUN_IN_FOREGROUND))
157-
"${DashMessage.EXCEPTION}Selected Controller option\n" +
158-
">>> ${ControllerOptions.DO_NOT_STOP_SERVICE} <<<\n" +
159-
"requires BackgroundManager Policy of\n" +
160-
">>> ${BackgroundManagerOptions.FOREGROUND} <<< and\n" +
161-
">>> ${BackgroundManagerOptions.KILL_APP} <<<"
157+
"${DashMessage.EXCEPTION}Selected Controller option " +
158+
"'${ControllerOptions.DO_NOT_STOP_SERVICE}' " +
159+
"requires BackgroundManager Policy of " +
160+
"'${BackgroundManagerOptions.FOREGROUND}' and " +
161+
"'${BackgroundManagerOptions.KILL_APP}'"
162162
else
163163
it
164164
DashboardFragment.showMessage(

0 commit comments

Comments
 (0)