File tree Expand file tree Collapse file tree
base/src/main/java/io/github/sds100/keymapper/base/actions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ class ConfigActionsViewModel @Inject constructor(
184184 override fun onEditClick () {
185185 val actionUid = actionOptionsUid.value ? : return
186186 viewModelScope.launch {
187+ // Clear the bottom sheet so navigating back with predicted-back works
188+ actionOptionsUid.update { null }
189+
187190 val keyMap = config.keyMap.first().dataOrNull() ? : return @launch
188191
189192 val oldAction = keyMap.actionList.find { it.uid == actionUid } ? : return @launch
@@ -194,6 +197,7 @@ class ConfigActionsViewModel @Inject constructor(
194197 override fun onReplaceClick () {
195198 val actionUid = actionOptionsUid.value ? : return
196199 viewModelScope.launch {
200+ // Clear the bottom sheet so navigating back with predicted-back works
197201 actionOptionsUid.update { null }
198202
199203 val newActionData =
You can’t perform that action at this time.
0 commit comments