From 760e01bf92b3fb4316b35f001d1d77a857aff41a Mon Sep 17 00:00:00 2001 From: Matthias Sweertvaegher Date: Thu, 7 Dec 2017 20:07:38 +0100 Subject: [PATCH] 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 --- .../java/com/topjohnwu/magisk/superuser/RequestActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/topjohnwu/magisk/superuser/RequestActivity.java b/src/main/java/com/topjohnwu/magisk/superuser/RequestActivity.java index 59233059d..6507a20d1 100644 --- a/src/main/java/com/topjohnwu/magisk/superuser/RequestActivity.java +++ b/src/main/java/com/topjohnwu/magisk/superuser/RequestActivity.java @@ -131,6 +131,7 @@ public class RequestActivity extends Activity { handleAction(Policy.ALLOW); timer.cancel(); }); + grant_btn.requestFocus(); deny_btn.setOnClickListener(v -> { handleAction(Policy.DENY); timer.cancel();