OSDN Git Service

Fix loading widgets in <include>d workspaces.
authorDaniel Sandler <dsandler@android.com>
Wed, 23 Oct 2013 18:49:53 +0000 (14:49 -0400)
committerDan Sandler <dsandler@android.com>
Wed, 23 Oct 2013 18:52:18 +0000 (18:52 +0000)
Resetting the item id was breaking the widget loading code
and is totally unnecessary.

Bug: 11352675
Change-Id: I2e70e542ecc5d8c0664b674ebdac5d520b71b8a0

src/com/android/launcher3/LauncherProvider.java

index d0f6770..e992706 100644 (file)
@@ -1046,7 +1046,6 @@ public class LauncherProvider extends ContentProvider {
                             // recursively load some more favorites, why not?
                             i += loadFavorites(db, resId);
                             added = false;
-                            mMaxItemId = -1;
                         } else {
                             Log.w(TAG, String.format("Skipping <include workspace=0x%08x>", resId));
                         }