From 271600f35708b832aa00e348127867be1803c564 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 14 Feb 2020 15:58:06 +0100 Subject: [PATCH] Adds missing touch listeners --- .../android/ui/modules/handhistory/HandHistoryAdapter.kt | 7 +++++++ .../ui/modules/handhistory/model/HandHistoryViewModel.kt | 1 + 2 files changed, 8 insertions(+) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt index a0ebcb14..c3ef4d8b 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt @@ -275,6 +275,10 @@ class HandHistoryAdapter( editText.requestFocus() } else { editText.clearFocus() +// if (editText.hasFocus()) { +// editText.isFocusable = false +// editText.isFocusableInTouchMode = false +// } } } @@ -509,6 +513,9 @@ class HandHistoryAdapter( itemView.handEditText.tag = PlayerSetupRow.Tag.HAND.ordinal itemView.stackEditText.tag = PlayerSetupRow.Tag.STACK.ordinal + setClickListener(itemView.handEditText) + setClickListener(itemView.stackEditText) + // Position Recycler val positionViewManager = LinearLayoutManager(itemView.context, RecyclerView.HORIZONTAL, false) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/HandHistoryViewModel.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/HandHistoryViewModel.kt index b3e138e8..b22f974d 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/HandHistoryViewModel.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/HandHistoryViewModel.kt @@ -594,6 +594,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra } } is PlayerCardsRow -> this.isSelected(position, row, tag) + is PlayerSetupRow -> this.isSelected(position, row, tag) else -> true } }