feat: Added confirmation dialog for disconnect item menu.
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
parent
9057ee0052
commit
cbe36fae6b
@ -599,12 +599,14 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
R.id.action_disconnect -> {
|
R.id.action_disconnect -> {
|
||||||
runBlocking {
|
needsConfirmation(R.string.confirm_disconnect_title, R.string.confirm_disconnect_description) {
|
||||||
repository.logout()
|
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
|
return true
|
||||||
}
|
}
|
||||||
R.id.action_settings -> {
|
R.id.action_settings -> {
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">Esta aplicación só funciona cunha instancia de Selfoss, e con ningún outro filtro RSS.</string>
|
<string name="application_selfoss_only">Esta aplicación só funciona cunha instancia de Selfoss, e con ningún outro filtro RSS.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">此应用只适用于 Selfoss 实例,不适用于其他 RSS 。</string>
|
<string name="application_selfoss_only">此应用只适用于 Selfoss 实例,不适用于其他 RSS 。</string>
|
||||||
<string name="menu_home_sources">源</string>
|
<string name="menu_home_sources">源</string>
|
||||||
<string name="update_source">更新源</string>
|
<string name="update_source">更新源</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -128,4 +128,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -131,4 +131,6 @@
|
|||||||
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
<string name="application_selfoss_only">This app only works with a Selfoss instance, and no other RSS feed.</string>
|
||||||
<string name="menu_home_sources">Sources</string>
|
<string name="menu_home_sources">Sources</string>
|
||||||
<string name="update_source">Update source</string>
|
<string name="update_source">Update source</string>
|
||||||
|
<string name="confirm_disconnect_title">Disconnect ?</string>
|
||||||
|
<string name="confirm_disconnect_description">You will be disconnected from your selfoss instance.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user