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