We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8abeb commit 73332deCopy full SHA for 73332de
1 file changed
krscript/src/main/java/com/omarea/krscript/ui/ParamsAppChooserRender.kt
@@ -90,10 +90,11 @@ class ParamsAppChooserRender(
90
// include missing packages
91
if (includeMissing && actionParamInfo.optionsFromShell != null) {
92
for (item in actionParamInfo.optionsFromShell!!) {
93
- if (!appMap.containsKey(item.value)) {
94
- appMap[item.value] = AdapterAppChooser.AppInfo().apply {
95
- packageName = item.value
96
- appName = item.title
+ val pkg = item.value ?: continue
+ if (!appMap.containsKey(pkg)) {
+ appMap[pkg] = AdapterAppChooser.AppInfo().apply {
+ packageName = pkg
97
+ appName = item.title ?: ""
98
}
99
100
0 commit comments