Refactor icons
This commit is contained in:
@@ -5,9 +5,9 @@ import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.widget.Toast
|
||||
import de.mm20.launcher2.icons.LauncherIcon
|
||||
import de.mm20.launcher2.icons.StaticLauncherIcon
|
||||
import de.mm20.launcher2.ktx.romanize
|
||||
import de.mm20.launcher2.ktx.tryStartActivity
|
||||
import de.mm20.launcher2.preferences.Settings.IconSettings.LegacyIconBackground
|
||||
import de.mm20.launcher2.search.R
|
||||
import java.text.Collator
|
||||
|
||||
@@ -37,10 +37,9 @@ abstract class Searchable : Comparable<Searchable> {
|
||||
open suspend fun loadIcon(
|
||||
context: Context,
|
||||
size: Int,
|
||||
legacyIconBackground: LegacyIconBackground
|
||||
): LauncherIcon? = null
|
||||
|
||||
abstract fun getPlaceholderIcon(context: Context): LauncherIcon
|
||||
abstract fun getPlaceholderIcon(context: Context): StaticLauncherIcon
|
||||
|
||||
override fun compareTo(other: Searchable): Int {
|
||||
return Collator.getInstance().apply { strength = Collator.SECONDARY }
|
||||
|
||||
Reference in New Issue
Block a user