File tree Expand file tree Collapse file tree
krscript/src/main/java/com/omarea/krscript/ui Expand file tree Collapse file tree Original file line number Diff line number Diff 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 // =======================
You can’t perform that action at this time.
0 commit comments