Adds missing touch listeners

hh
Laurent 6 years ago
parent 12495533b3
commit 271600f357
  1. 7
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt
  2. 1
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/HandHistoryViewModel.kt

@ -275,6 +275,10 @@ class HandHistoryAdapter(
editText.requestFocus() editText.requestFocus()
} else { } else {
editText.clearFocus() 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.handEditText.tag = PlayerSetupRow.Tag.HAND.ordinal
itemView.stackEditText.tag = PlayerSetupRow.Tag.STACK.ordinal itemView.stackEditText.tag = PlayerSetupRow.Tag.STACK.ordinal
setClickListener(itemView.handEditText)
setClickListener(itemView.stackEditText)
// Position Recycler // Position Recycler
val positionViewManager = LinearLayoutManager(itemView.context, RecyclerView.HORIZONTAL, false) val positionViewManager = LinearLayoutManager(itemView.context, RecyclerView.HORIZONTAL, false)

@ -594,6 +594,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra
} }
} }
is PlayerCardsRow -> this.isSelected(position, row, tag) is PlayerCardsRow -> this.isSelected(position, row, tag)
is PlayerSetupRow -> this.isSelected(position, row, tag)
else -> true else -> true
} }
} }

Loading…
Cancel
Save