mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Fixing bug in GridSizeMigrationTask, where it was not accounting for
an extra space when there is no all-apps icon Bug: 29569843 Change-Id: Ib768f0d069aed413bd8f4c2aa86ab1d3d657680e
This commit is contained in:
@@ -150,7 +150,7 @@ public class GridSizeMigrationTask {
|
||||
protected boolean migrateHotseat() throws Exception {
|
||||
ArrayList<DbEntry> items = loadHotseatEntries();
|
||||
|
||||
int requiredCount = mDestHotseatSize - 1;
|
||||
int requiredCount = FeatureFlags.NO_ALL_APPS_ICON ? mDestHotseatSize : mDestHotseatSize - 1;
|
||||
|
||||
while (items.size() > requiredCount) {
|
||||
// Pick the center item by default.
|
||||
|
||||
Reference in New Issue
Block a user