From df637d64a58b951687b1c9e3ef6125fcd2221847 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 31 Jan 2020 17:36:29 +0100 Subject: [PATCH] More cleanup --- .../android/ui/modules/handhistory/HandHistoryAdapter.kt | 6 +++--- app/src/main/res/layout/row_hand_action.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 daf8a30a..f9f8f373 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 @@ -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) diff --git a/app/src/main/res/layout/row_hand_action.xml b/app/src/main/res/layout/row_hand_action.xml index e90586a1..ec914421 100644 --- a/app/src/main/res/layout/row_hand_action.xml +++ b/app/src/main/res/layout/row_hand_action.xml @@ -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" />