Logout fix.

This commit is contained in:
aminecmi 2022-12-18 20:42:13 +01:00
parent f42ae97326
commit 2cfaa9b285

View File

@ -600,9 +600,9 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
CoroutineScope(Dispatchers.Main).launch { CoroutineScope(Dispatchers.Main).launch {
repository.logout() repository.logout()
} }
this@HomeActivity.finish()
val intent = Intent(this, LoginActivity::class.java) val intent = Intent(this, LoginActivity::class.java)
this.startActivity(intent) this.startActivity(intent)
this@HomeActivity.finish()
return true return true
} }
R.id.action_settings -> { R.id.action_settings -> {