request focus for grant button to enable dpad nav

if no buttons have focus, it is impossible to use
on android tv without hooking up a mouse
This commit is contained in:
Matthias Sweertvaegher 2017-12-07 20:07:38 +01:00 committed by John Wu
parent 543f435b1e
commit 760e01bf92

View File

@ -131,6 +131,7 @@ public class RequestActivity extends Activity {
handleAction(Policy.ALLOW); handleAction(Policy.ALLOW);
timer.cancel(); timer.cancel();
}); });
grant_btn.requestFocus();
deny_btn.setOnClickListener(v -> { deny_btn.setOnClickListener(v -> {
handleAction(Policy.DENY); handleAction(Policy.DENY);
timer.cancel(); timer.cancel();