diff --git a/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/main/MainScreen.kt b/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/main/MainScreen.kt
index db1aa20f..6d89dd2e 100644
--- a/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/main/MainScreen.kt
+++ b/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/main/MainScreen.kt
@@ -165,6 +165,7 @@ fun MainScreen(
(uiState.result as? Result.Success)?.let { result ->
when (uiState.actionAfterClean) {
ActionAfterClean.OpenShareMenu -> openShareMenu(result)
+ ActionAfterClean.OpenUrl -> openInDefaultApp(result)
ActionAfterClean.CopyToClipboard -> copyToClipboard(result)
ActionAfterClean.DoNothing -> {}
}
diff --git a/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/settings/SettingsScreen.kt b/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/settings/SettingsScreen.kt
index 7ab105b0..549b4465 100644
--- a/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/settings/SettingsScreen.kt
+++ b/app/src/main/kotlin/com/svenjacobs/app/leon/ui/screens/settings/SettingsScreen.kt
@@ -175,6 +175,14 @@ private fun Content(
},
)
+ DropdownMenuItem(
+ text = { Text(stringResource(R.string.open_url)) },
+ onClick = {
+ expanded = false
+ onActionAfterCleanClick(ActionAfterClean.OpenUrl)
+ },
+ )
+
DropdownMenuItem(
text = { Text(stringResource(R.string.copy_to_clipboard)) },
onClick = {
@@ -205,6 +213,7 @@ private fun Content(
private fun ActionAfterClean.text(): String = when (this) {
ActionAfterClean.DoNothing -> stringResource(R.string.do_nothing)
ActionAfterClean.OpenShareMenu -> stringResource(R.string.open_share_menu)
+ ActionAfterClean.OpenUrl -> stringResource(R.string.open_url)
ActionAfterClean.CopyToClipboard -> stringResource(R.string.copy_to_clipboard)
}
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 32ee87e6..35a67e24 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -39,5 +39,6 @@
Aktion nach Reinigung
Nichts unternehmen
Teilenmenü öffnen
+ URL öffnen
In Zwischenablage kopieren
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index 7b80e6a2..9ce030af 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -39,5 +39,6 @@
Action after clean
Do nothing
Open share menu
+ Open URL
Copy to clipboard
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 5681f8f5..5274efd3 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -39,5 +39,6 @@
Action after clean
Do nothing
Open share menu
+ Open URL
Copy to clipboard
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 56fc78f4..19dae85c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -40,5 +40,6 @@
Action after clean
Do nothing
Open share menu
+ Open URL
Copy to clipboard
diff --git a/core-domain/src/main/kotlin/com/svenjacobs/app/leon/core/domain/action/ActionAfterClean.kt b/core-domain/src/main/kotlin/com/svenjacobs/app/leon/core/domain/action/ActionAfterClean.kt
index 18b7d672..8e326744 100644
--- a/core-domain/src/main/kotlin/com/svenjacobs/app/leon/core/domain/action/ActionAfterClean.kt
+++ b/core-domain/src/main/kotlin/com/svenjacobs/app/leon/core/domain/action/ActionAfterClean.kt
@@ -22,4 +22,5 @@ enum class ActionAfterClean {
DoNothing,
OpenShareMenu,
CopyToClipboard,
+ OpenUrl,
}