diff --git a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt index ab4d5473..3a2a84f1 100644 --- a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt +++ b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt @@ -599,12 +599,14 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar return true } R.id.action_disconnect -> { - runBlocking { - repository.logout() + needsConfirmation(R.string.confirm_disconnect_title, R.string.confirm_disconnect_description) { + runBlocking { + repository.logout() + } + val intent = Intent(this, LoginActivity::class.java) + this.startActivity(intent) + finish() } - val intent = Intent(this, LoginActivity::class.java) - this.startActivity(intent) - finish() return true } R.id.action_settings -> { diff --git a/androidApp/src/main/res/values-ca-rES/strings.xml b/androidApp/src/main/res/values-ca-rES/strings.xml index 67949a0a..be27994f 100644 --- a/androidApp/src/main/res/values-ca-rES/strings.xml +++ b/androidApp/src/main/res/values-ca-rES/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-de-rDE/strings.xml b/androidApp/src/main/res/values-de-rDE/strings.xml index 0ec144a3..036dcb94 100644 --- a/androidApp/src/main/res/values-de-rDE/strings.xml +++ b/androidApp/src/main/res/values-de-rDE/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-es-rES/strings.xml b/androidApp/src/main/res/values-es-rES/strings.xml index f8cc8e6b..9f9f9021 100644 --- a/androidApp/src/main/res/values-es-rES/strings.xml +++ b/androidApp/src/main/res/values-es-rES/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-fa-rIR/strings.xml b/androidApp/src/main/res/values-fa-rIR/strings.xml index f5967efa..d4951bbe 100644 --- a/androidApp/src/main/res/values-fa-rIR/strings.xml +++ b/androidApp/src/main/res/values-fa-rIR/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-fr-rFR/strings.xml b/androidApp/src/main/res/values-fr-rFR/strings.xml index 21c972a8..d99f94e7 100644 --- a/androidApp/src/main/res/values-fr-rFR/strings.xml +++ b/androidApp/src/main/res/values-fr-rFR/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-gl-rES/strings.xml b/androidApp/src/main/res/values-gl-rES/strings.xml index 18cde05a..d32b7d17 100644 --- a/androidApp/src/main/res/values-gl-rES/strings.xml +++ b/androidApp/src/main/res/values-gl-rES/strings.xml @@ -128,4 +128,6 @@ Esta aplicación só funciona cunha instancia de Selfoss, e con ningún outro filtro RSS. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-in-rID/strings.xml b/androidApp/src/main/res/values-in-rID/strings.xml index 35c8aef1..0f48e730 100644 --- a/androidApp/src/main/res/values-in-rID/strings.xml +++ b/androidApp/src/main/res/values-in-rID/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-it-rIT/strings.xml b/androidApp/src/main/res/values-it-rIT/strings.xml index 9c5a95f3..5b28be02 100644 --- a/androidApp/src/main/res/values-it-rIT/strings.xml +++ b/androidApp/src/main/res/values-it-rIT/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-ko-rKR/strings.xml b/androidApp/src/main/res/values-ko-rKR/strings.xml index bd2e7225..e155386d 100644 --- a/androidApp/src/main/res/values-ko-rKR/strings.xml +++ b/androidApp/src/main/res/values-ko-rKR/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-nl-rNL/strings.xml b/androidApp/src/main/res/values-nl-rNL/strings.xml index f57a72bc..21b72a24 100644 --- a/androidApp/src/main/res/values-nl-rNL/strings.xml +++ b/androidApp/src/main/res/values-nl-rNL/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-pt-rBR/strings.xml b/androidApp/src/main/res/values-pt-rBR/strings.xml index cdcb12b9..a13d2ddb 100644 --- a/androidApp/src/main/res/values-pt-rBR/strings.xml +++ b/androidApp/src/main/res/values-pt-rBR/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-pt-rPT/strings.xml b/androidApp/src/main/res/values-pt-rPT/strings.xml index a77e8a7d..84bdc30f 100644 --- a/androidApp/src/main/res/values-pt-rPT/strings.xml +++ b/androidApp/src/main/res/values-pt-rPT/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-si-rLK/strings.xml b/androidApp/src/main/res/values-si-rLK/strings.xml index bc46c4ba..a6fcab7b 100644 --- a/androidApp/src/main/res/values-si-rLK/strings.xml +++ b/androidApp/src/main/res/values-si-rLK/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-tr-rTR/strings.xml b/androidApp/src/main/res/values-tr-rTR/strings.xml index be4fa362..8cd2816d 100644 --- a/androidApp/src/main/res/values-tr-rTR/strings.xml +++ b/androidApp/src/main/res/values-tr-rTR/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-zh-rCN/strings.xml b/androidApp/src/main/res/values-zh-rCN/strings.xml index 5cd071dd..91989543 100644 --- a/androidApp/src/main/res/values-zh-rCN/strings.xml +++ b/androidApp/src/main/res/values-zh-rCN/strings.xml @@ -128,4 +128,6 @@ 此应用只适用于 Selfoss 实例,不适用于其他 RSS 。 更新源 + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values-zh-rTW/strings.xml b/androidApp/src/main/res/values-zh-rTW/strings.xml index 523da1f8..45c006d4 100644 --- a/androidApp/src/main/res/values-zh-rTW/strings.xml +++ b/androidApp/src/main/res/values-zh-rTW/strings.xml @@ -128,4 +128,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance. diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml index ab8b0bf6..fc9504e3 100644 --- a/androidApp/src/main/res/values/strings.xml +++ b/androidApp/src/main/res/values/strings.xml @@ -131,4 +131,6 @@ This app only works with a Selfoss instance, and no other RSS feed. Sources Update source + Disconnect ? + You will be disconnected from your selfoss instance.