Populate the default workspace earlier

Adds a receiver that populates the default
workspace. It can be called by the system when
it's ready for launcher to preload.

Change-Id: If885fcfd931c459f87e9bb0df4c8bca00906f3c1
This commit is contained in:
Brian Muramatsu authored and Michael Jurka committed 2012-05-15 16:31:59 -07:00
1 parent ceca4ff189
commit b6a4d983b8
3 files changed
+51 -1

No files matched your search

@@ -203,7 +203,7 @@ public class LauncherProvider extends ContentProvider {
return mOpenHelper.generateNewId();
}
public void loadDefaultFavoritesIfNecessary() {
synchronized public void loadDefaultFavoritesIfNecessary() {
String spKey = LauncherApplication.getSharedPreferencesKey();
SharedPreferences sp = getContext().getSharedPreferences(spKey, Context.MODE_PRIVATE);
if (sp.getBoolean(DB_CREATED_BUT_DEFAULT_WORKSPACE_NOT_LOADED, false)) {