Skip to content

Commit fe5a49d

Browse files
committed
Upload file
1 parent e968b02 commit fe5a49d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ private fun loadPackages(includeMissing: Boolean = false): ArrayList<AdapterAppC
7272
if (includeMissing && actionParamInfo.optionsFromShell != null) {
7373
for (item in actionParamInfo.optionsFromShell!!) {
7474
if (!result.containsKey(item.value)) {
75-
result[item.value] = AdapterAppChooser.AppInfo().apply {
76-
appName = "" + item.title
77-
packageName = "" + item.value
75+
val pkg = item.value ?: ""
76+
result[pkg] = AdapterAppChooser.AppInfo().apply {
77+
packageName = pkg
78+
appName = item.title ?: ""
7879
}
7980
}
8081
}

0 commit comments

Comments
 (0)