pull/586/head
FongMi 1 year ago
parent f0f64bf7b8
commit 7752760609
  1. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomKeyboard.java
  2. 6
      app/src/leanback/res/layout/activity_search.xml

@ -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;

@ -45,12 +45,6 @@
android:layout_height="match_parent"
android:layout_marginEnd="36dp">
<View
android:id="@+id/fake"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="true" />
<com.fongmi.android.tv.ui.custom.CustomMic
android:id="@+id/mic"
android:layout_width="36dp"

Loading…
Cancel
Save