tv: escape deletion view with back button
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
a8dfebb086
commit
7bec539722
@ -135,6 +135,13 @@ class TvMainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onBackPressed() {
|
||||||
|
if (isDeleting.get())
|
||||||
|
isDeleting.set(false)
|
||||||
|
else
|
||||||
|
super.onBackPressed()
|
||||||
|
}
|
||||||
|
|
||||||
private suspend fun updateStats() {
|
private suspend fun updateStats() {
|
||||||
binding.tunnelList.forEach { viewItem ->
|
binding.tunnelList.forEach { viewItem ->
|
||||||
val listItem = DataBindingUtil.findBinding<TvTunnelListItemBinding>(viewItem)
|
val listItem = DataBindingUtil.findBinding<TvTunnelListItemBinding>(viewItem)
|
||||||
|
Loading…
Reference in New Issue
Block a user