diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-06-15 15:42:29 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-06-17 08:17:22 -0700 |
commit | bb011dad4e69bec027be1e00d573a3095b318b43 (patch) | |
tree | 71c459e2f2c45584075087ce843cdbf692dadaf5 /tests/src | |
parent | 0af8af3a6090bc0309cb126a1ccfb2a66e058783 (diff) | |
download | android_packages_apps_Trebuchet-bb011dad4e69bec027be1e00d573a3095b318b43.tar.gz android_packages_apps_Trebuchet-bb011dad4e69bec027be1e00d573a3095b318b43.tar.bz2 android_packages_apps_Trebuchet-bb011dad4e69bec027be1e00d573a3095b318b43.zip |
Adding a flag (enabled by default) to remove the all-apps button.
All apps can still be opened by clicking the caret.
Bug: 29398447
Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java b/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java index ebf06ba38..08a81f0c8 100644 --- a/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java +++ b/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java @@ -58,7 +58,8 @@ public class GridSizeMigrationTaskTest extends ProviderTestCase2<TestLauncherPro addItem(APPLICATION, 4, HOTSEAT, 0, 0), }; - new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, 5, 2, 3, 1) + mIdp.numHotseatIcons = 3; + new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, 5, 3) .migrateHotseat(); // First & last items are dropped as they have the least weight. verifyHotseat(hotseatItems[1], -1, hotseatItems[3]); @@ -73,7 +74,8 @@ public class GridSizeMigrationTaskTest extends ProviderTestCase2<TestLauncherPro addItem(10, 4, HOTSEAT, 0, 0), }; - new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, 5, 2, 3, 1) + mIdp.numHotseatIcons = 3; + new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, 5, 3) .migrateHotseat(); // First & third items are dropped as they have the least weight. verifyHotseat(hotseatItems[1], -1, hotseatItems[4]); |