From 77527606095da89339af5749a6195ff72802d663 Mon Sep 17 00:00:00 2001 From: FongMi Date: Sat, 6 Jul 2024 17:20:46 +0800 Subject: [PATCH] Fix bug --- .../com/fongmi/android/tv/ui/custom/CustomKeyboard.java | 2 +- app/src/leanback/res/layout/activity_search.xml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomKeyboard.java b/app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomKeyboard.java index e53f48706..1dff8ab68 100644 --- a/app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomKeyboard.java +++ b/app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomKeyboard.java @@ -44,7 +44,7 @@ public class CustomKeyboard implements KeyboardAdapter.OnClickListener { int cursor = binding.keyword.getSelectionStart(); switch (resId) { case R.drawable.ic_keyboard: - binding.fake.requestFocus(); + binding.keyword.requestFocus(); adapter.toggle(); binding.keyboard.postDelayed(() -> binding.keyboard.findViewHolderForLayoutPosition(6).itemView.requestFocus(), 0); break; diff --git a/app/src/leanback/res/layout/activity_search.xml b/app/src/leanback/res/layout/activity_search.xml index 79c799945..ff0c2bbad 100644 --- a/app/src/leanback/res/layout/activity_search.xml +++ b/app/src/leanback/res/layout/activity_search.xml @@ -45,12 +45,6 @@ android:layout_height="match_parent" android:layout_marginEnd="36dp"> - -