Skip to content

Commit 5c4ce3a

Browse files
committed
Upload file
1 parent 3cda43f commit 5c4ce3a

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

krscript/src/main/java/com/omarea/krscript/ui/ParamsAppChooserRender.kt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ class ParamsAppChooserRender(
173173
if (packages.any { it.packageName == info.packageName }) continue
174174
insertSorted(packages, info)
175175
}
176-
// setSelectStatus()
177176
dialog.notifyDataChanged()
178177
}
179178
}
@@ -204,31 +203,12 @@ class ParamsAppChooserRender(
204203

205204
// kết thúc load
206205
withContext(Dispatchers.Main) {
207-
setSelectStatus()
208206
dialog.notifyDataChanged()
209207
dialog.showLoading(false)
210208
}
211209
}
212210
}
213211

214-
// =======================
215-
// SELECTION LOGIC
216-
// =======================
217-
private fun setSelectStatus() {
218-
val currentValues = if (actionParamInfo.multiple) {
219-
valueView.text.toString()
220-
.split(actionParamInfo.separator)
221-
.filter { it.isNotEmpty() }
222-
.toSet()
223-
} else {
224-
setOf(valueView.text.toString())
225-
}
226-
227-
packages.forEach {
228-
it.selected = it.packageName != null && currentValues.contains(it.packageName)
229-
}
230-
}
231-
232212
// =======================
233213
// INIT UI VALUE (GIỮ NGUYÊN)
234214
// =======================

0 commit comments

Comments
 (0)