fix: Temporarily fix reloadIcons
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.Context
|
||||
import app.lawnchair.LawnchairLauncher
|
||||
import com.android.launcher3.InvariantDeviceProfile
|
||||
import com.android.launcher3.LauncherAppState
|
||||
import com.android.launcher3.graphics.ThemeManager
|
||||
import com.android.launcher3.util.Executors
|
||||
import com.android.quickstep.TouchInteractionService
|
||||
import com.android.quickstep.util.TISBindHelper
|
||||
@@ -51,6 +52,7 @@ class ReloadHelper(private val context: Context) {
|
||||
fun reloadIcons() {
|
||||
Executors.MODEL_EXECUTOR.execute {
|
||||
LauncherAppState.INSTANCE.get(context).iconCache.clearMemoryCache()
|
||||
LauncherAppState.INSTANCE.get(context).model.reloadIfActive()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user