@@ -2,7 +2,6 @@ package de.mm20.launcher2.searchactions.actions
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import androidx.core.net.toUri
|
||||
import de.mm20.launcher2.ktx.tryStartActivity
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ interface SearchActionBuilder {
|
||||
iconColor = entity.color ?: 0,
|
||||
icon = SearchActionIcon.fromInt(entity.icon),
|
||||
customIcon = entity.customIcon,
|
||||
queryKey = options?.optString("extra"),
|
||||
queryKey = options?.optString("extra")?.takeIf { it.isNotBlank() },
|
||||
queryTemplate = options?.optString("template")?.takeIf { it.isNotBlank() }
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user