We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e968b02 commit fe5a49dCopy full SHA for fe5a49d
1 file changed
krscript/src/main/java/com/omarea/krscript/ui/ParamsAppChooserRender.kt
@@ -72,9 +72,10 @@ private fun loadPackages(includeMissing: Boolean = false): ArrayList<AdapterAppC
72
if (includeMissing && actionParamInfo.optionsFromShell != null) {
73
for (item in actionParamInfo.optionsFromShell!!) {
74
if (!result.containsKey(item.value)) {
75
- result[item.value] = AdapterAppChooser.AppInfo().apply {
76
- appName = "" + item.title
77
- packageName = "" + item.value
+ val pkg = item.value ?: ""
+ result[pkg] = AdapterAppChooser.AppInfo().apply {
+ packageName = pkg
78
+ appName = item.title ?: ""
79
}
80
81
0 commit comments