mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Clear icon cache when restoring settings
This commit is contained in:
@@ -33,6 +33,7 @@ import android.view.View
|
||||
import android.widget.*
|
||||
import ch.deletescape.lawnchair.colors.ColorEngine
|
||||
import ch.deletescape.lawnchair.settings.ui.SettingsBaseActivity
|
||||
import com.android.launcher3.LauncherAppState
|
||||
import com.android.launcher3.R
|
||||
import com.android.launcher3.Utilities
|
||||
import com.android.launcher3.provider.RestoreDbTask
|
||||
@@ -196,6 +197,8 @@ class RestoreBackupActivity : SettingsBaseActivity(), LawnchairBackup.MetaLoader
|
||||
Utilities.getLawnchairPrefs(this@RestoreBackupActivity).blockingEdit {
|
||||
restoreSuccess = true
|
||||
}
|
||||
} else {
|
||||
LauncherAppState.getInstance(context).iconCache.clear()
|
||||
}
|
||||
|
||||
if (result and LawnchairBackup.INCLUDE_HOMESCREEN != 0) {
|
||||
|
||||
Reference in New Issue
Block a user