File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/app/revanced/manager/ui/viewmodel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ class SelectedAppInfoViewModel(
131
131
viewModelScope.launch {
132
132
if (! persistConfiguration) return @launch // TODO: save options for patched apps.
133
133
134
- state.value = withContext(Dispatchers .Default ) {
134
+ options = withContext(Dispatchers .Default ) {
135
135
val bundlePatches = bundleRepository.bundles.first()
136
136
.mapValues { (_, bundle) -> bundle.patches.associateBy { it.name } }
137
137
@@ -143,7 +143,7 @@ class SelectedAppInfoViewModel(
143
143
}
144
144
private set
145
145
146
- private var selectionState by savedStateHandle.saveable {
146
+ private var selectionState: SelectionState by savedStateHandle.saveable {
147
147
if (input.patches != null )
148
148
return @saveable mutableStateOf(SelectionState .Customized (input.patches))
149
149
@@ -155,7 +155,7 @@ class SelectedAppInfoViewModel(
155
155
156
156
val previous = selectionRepository.getSelection(packageName)
157
157
if (previous.values.sumOf { it.size } == 0 ) return @launch
158
- selection.value = SelectionState .Customized (previous)
158
+ selectionState = SelectionState .Customized (previous)
159
159
}
160
160
161
161
selection
You can’t perform that action at this time.
0 commit comments