Skip to content

Commit a8dfebb

Browse files
committed
tv: select first item after toggling deletion mode
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent e72b4fc commit a8dfebb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/main/java/com/wireguard/android/activity/TvMainActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ class TvMainActivity : AppCompatActivity() {
120120
}
121121
binding.deleteButton.setOnClickListener {
122122
isDeleting.set(!isDeleting.get())
123+
runOnUiThread {
124+
binding.tunnelList.requestFocus()
125+
}
123126
}
124127
binding.executePendingBindings()
125128
setContentView(binding.root)

0 commit comments

Comments
 (0)