From 258fd7c03bd3893f213c47bebd3230740dbd34a7 Mon Sep 17 00:00:00 2001 From: Beverly Date: Fri, 12 Jun 2020 10:15:29 -0400 Subject: [PATCH] Explicitly request focus after button pressed Don't use focusableInTouchMode, it was causing focus/clickability issues when the device wasn't in touch mode. Test: manually tap button (tap works first try) Test: turn on talkback and toggle buttons, also try toggling QS tile while on the Settings page - doesn't reannounce state Fixes: 158717450 Change-Id: I785d0200dd61235aa3308a8588f9ee998e7cb6e5 --- .../night_display_activation_button.xml | 2 -- res/layout/zen_mode_settings_button.xml | 2 -- ...DisplayActivationPreferenceController.java | 22 ++++++++---------- .../ZenModeButtonPreferenceController.java | 23 +++++++++++-------- 4 files changed, 22 insertions(+), 27 deletions(-) diff --git a/res/layout/night_display_activation_button.xml b/res/layout/night_display_activation_button.xml index 8765ff7ea0e..df160ec33b8 100644 --- a/res/layout/night_display_activation_button.xml +++ b/res/layout/night_display_activation_button.xml @@ -24,7 +24,6 @@