From 2cfaa9b2850d9dc45fe709a560961a1e778085de Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 18 Dec 2022 20:42:13 +0100 Subject: [PATCH] Logout fix. --- .../bou/amine/apps/readerforselfossv2/android/HomeActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b5e6399..41ec606 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 @@ -600,9 +600,9 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar CoroutineScope(Dispatchers.Main).launch { repository.logout() } + this@HomeActivity.finish() val intent = Intent(this, LoginActivity::class.java) this.startActivity(intent) - this@HomeActivity.finish() return true } R.id.action_settings -> {