mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Cancelling launcher reload on mcc change
Bug: 21022833 Change-Id: Iccd477e7b1638d162e1a500cdb7a52b8d359c657
This commit is contained in:
@@ -219,7 +219,7 @@ public class IconCache {
|
||||
// Remove all active icon update tasks.
|
||||
mWorkerHandler.removeCallbacksAndMessages(ICON_UPDATE_TOKEN);
|
||||
|
||||
mIconDb.updateSystemStateString(mContext);
|
||||
mIconDb.updateSystemStateString();
|
||||
for (UserHandleCompat user : mUserManager.getUserProfiles()) {
|
||||
// Query for the set of apps
|
||||
final List<LauncherActivityInfoCompat> apps = mLauncherApps.getActivityList(null, user);
|
||||
@@ -756,15 +756,13 @@ public class IconCache {
|
||||
|
||||
public IconDB(Context context) {
|
||||
super(context, LauncherFiles.APP_ICONS_DB, null, DB_VERSION);
|
||||
updateSystemStateString(context);
|
||||
updateSystemStateString();
|
||||
}
|
||||
|
||||
public void updateSystemStateString(Context c) {
|
||||
mSystemState = Locale.getDefault().toString() + ","
|
||||
+ c.getResources().getConfiguration().mcc;
|
||||
public void updateSystemStateString() {
|
||||
mSystemState = Locale.getDefault().toString();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onCreate(SQLiteDatabase db) {
|
||||
db.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" +
|
||||
|
||||
Reference in New Issue
Block a user