diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryFragment.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryFragment.kt index 7238ccad..8e5e9d91 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryFragment.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryFragment.kt @@ -432,7 +432,6 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL getRealm().executeTransaction { this.model.amountValidated() } -// this.handHistoryAdapter.notifyDataSetChanged() this.findNextActionToEdit(userInitiated = true) } 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 5b94e746..ac0e182c 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 @@ -227,6 +227,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra rows.add(HandRowType.BIG_BLIND_ANTE) } + rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.players, value = "")) this.readPlayerSetups().forEach { rows.add(it) } @@ -293,14 +294,13 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra // Used to set the hero position rows.add(HandRowType.HERO_POSITION) + rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.players, value = "")) + // Used to select an available position to set details for that position if (this.handHistory.playerSetups.size < this.handHistory.numberOfPlayers) { rows.add(HandRowType.PLAYER_POSITION) } - - this.playerSetups().forEach { - rows.add(it) - } + rows.addAll(this.playerSetups()) Street.values().forEach { street -> diff --git a/app/src/main/res/layout/row_hand_action_read.xml b/app/src/main/res/layout/row_hand_action_read.xml index 62d8772f..afeaed3d 100644 --- a/app/src/main/res/layout/row_hand_action_read.xml +++ b/app/src/main/res/layout/row_hand_action_read.xml @@ -3,7 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:orientation="horizontal" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="52dp"> \ No newline at end of file