tv: select first item after toggling deletion mode

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-09-22 23:59:40 +02:00
parent e72b4fc144
commit a8dfebb086

View File

@ -120,6 +120,9 @@ class TvMainActivity : AppCompatActivity() {
}
binding.deleteButton.setOnClickListener {
isDeleting.set(!isDeleting.get())
runOnUiThread {
binding.tunnelList.requestFocus()
}
}
binding.executePendingBindings()
setContentView(binding.root)