More cleanup

hh
Laurent 6 years ago
parent 028d6eaf65
commit df637d64a5
  1. 6
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt
  2. 2
      app/src/main/res/layout/row_hand_action.xml

@ -189,9 +189,9 @@ class HandHistoryAdapter(
val selected = adapter.dataSource.isSelected(position, row, tag)
amountEditText.setBackgroundColor(color(selected))
// Both are required, otherwise requestFocus() fails
// amountEditText.isFocusable = selected && computedAction.amountCanBeEdited
// amountEditText.isFocusableInTouchMode = selected && computedAction.amountCanBeEdited
// Useful to have the cursor disappear when the keyboard is closed
amountEditText.isFocusable = selected && computedAction.amountCanBeEdited
amountEditText.isFocusableInTouchMode = selected && computedAction.amountCanBeEdited
amountEditText.setText(computedAction.action.formattedAmount)

@ -32,7 +32,7 @@
android:layout_weight="2"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginEnd="16dp"
android:gravity="end"
android:maxLines="1" />

Loading…
Cancel
Save