From 829e64448f4e65689c62bf485a1753db125dc592 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 10 Jan 2024 11:01:20 +0100 Subject: [PATCH] Fixes crash when opening the settings after having an opened keyboard in the players section --- .../android/ui/modules/handhistory/model/EditorViewModel.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/EditorViewModel.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/EditorViewModel.kt index e1e07348..caeb37f7 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/EditorViewModel.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/EditorViewModel.kt @@ -1058,6 +1058,7 @@ class EditorViewModel : ViewModel(), RowRepresentableDataSource, CardCentralizer } fun toggleSettingsRows() { + this.selectionLiveData.value = null this.settingsExpanded = !this.settingsExpanded this.createRowRepresentation() }