summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-01-11 14:33:38 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-01-13 10:38:41 -0800
commitc1ad0ce8aebb76794fdd8b44a0bf50435f0cf39a (patch)
tree7c7d1a7ff0d6418f1e6948f882ef8c19da9e4518 /tests
parent761d49a7a1c51de256a1b0e6181e9ad46c9347e1 (diff)
downloadandroid_packages_apps_Trebuchet-c1ad0ce8aebb76794fdd8b44a0bf50435f0cf39a.tar.gz
android_packages_apps_Trebuchet-c1ad0ce8aebb76794fdd8b44a0bf50435f0cf39a.tar.bz2
android_packages_apps_Trebuchet-c1ad0ce8aebb76794fdd8b44a0bf50435f0cf39a.zip
Only marking items not already restored as restore
> Moving the restore property to LoaderCursor Bug: 34123089 Change-Id: I1f992ef086d65e0b3cf18d3b2cf37a4f254c97d2
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/launcher3/model/LoaderCursorTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/launcher3/model/LoaderCursorTest.java b/tests/src/com/android/launcher3/model/LoaderCursorTest.java
index d40e6c2fc..b1c34d107 100644
--- a/tests/src/com/android/launcher3/model/LoaderCursorTest.java
+++ b/tests/src/com/android/launcher3/model/LoaderCursorTest.java
@@ -37,6 +37,7 @@ import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE;
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION;
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT;
import static com.android.launcher3.LauncherSettings.Favorites.PROFILE_ID;
+import static com.android.launcher3.LauncherSettings.Favorites.RESTORED;
import static com.android.launcher3.LauncherSettings.Favorites.SCREEN;
import static com.android.launcher3.LauncherSettings.Favorites.TITLE;
import static com.android.launcher3.LauncherSettings.Favorites._ID;
@@ -72,7 +73,7 @@ public class LoaderCursorTest {
mCursor = new MatrixCursor(new String[] {
ICON, ICON_PACKAGE, ICON_RESOURCE, TITLE,
_ID, CONTAINER, ITEM_TYPE, PROFILE_ID,
- SCREEN, CELLX, CELLY,
+ SCREEN, CELLX, CELLY, RESTORED
});
mContext = InstrumentationRegistry.getTargetContext();