Merge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread" into ub-launcher3-burnaby-polish
This commit is contained in:
commit
ffa1237698
6 files changed
+12
-13
No files matched your search
@@ -3672,7 +3672,7 @@ public class Launcher extends Activity
|
||||
mSharedPrefs.edit()
|
||||
.putInt(QSB_WIDGET_ID, widgetId)
|
||||
.putString(QSB_WIDGET_PROVIDER, searchProvider.provider.flattenToString())
|
||||
.commit();
|
||||
.apply();
|
||||
}
|
||||
|
||||
mAppWidgetHost.setQsbWidgetId(widgetId);
|
||||
|
||||
Reference in new issue
Block a user