Merge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread" into ub-launcher3-burnaby-polish

This commit is contained in:
Sunny Goyal authored and Android (Google) Code Review committed 2015-12-18 22:38:52 +00:00
commit ffa1237698
6 files changed
+12 -13

No files matched your search

+1 -1
View File
@@ -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);