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:
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)) {
|
||||
|
||||
Reference in new issue
Block a user