|
|
|
|
@ -270,9 +270,6 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
|
this.save() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// if (this.model.isEdited && this.model.isNew) { |
|
|
|
|
// this.findNextActionToEdit(0) |
|
|
|
|
// } |
|
|
|
|
this.handHistoryAdapter.notifyDataSetChanged() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -377,7 +374,6 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
|
HandRowType.HERO_POSITION -> { |
|
|
|
|
this.model.setHeroPosition(value as Position) |
|
|
|
|
this.handHistoryAdapter.notifyDataSetChanged() |
|
|
|
|
// this.handHistoryAdapter.notifyItemChanged(this.indexOfRowRepresentable(row)) |
|
|
|
|
} |
|
|
|
|
HandRowType.PLAYER_POSITION -> { |
|
|
|
|
this.model.createPlayerSetupForPosition(value as Position) |
|
|
|
|
@ -633,6 +629,7 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
|
|
|
|
|
|
private fun removePlayer(positionIndex: Int) { |
|
|
|
|
this.model.removePlayerSetup(positionIndex) |
|
|
|
|
this.model.clearSelection() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|