Add option to hide At a Glance widget (#2141)

Co-authored-by: Patryk Michalik <contact@patrykmichalik.com>
This commit is contained in:
Kshitij Gupta
2021-05-06 13:18:21 +05:30
committed by GitHub
parent e275fcfe93
commit 9affffe0ff
15 changed files with 48 additions and 16 deletions
@@ -58,6 +58,8 @@ import com.android.launcher3.util.IntSparseArrayMap;
import java.net.URISyntaxException;
import java.security.InvalidParameterException;
import app.lawnchair.LawnchairApp;
/**
* Extension of {@link Cursor} with utility methods for workspace loading.
*/
@@ -445,7 +447,7 @@ public class LoaderCursor extends CursorWrapper {
if (item.screenId == Workspace.FIRST_SCREEN_ID) {
// Mark the first row as occupied (if the feature is enabled)
// in order to account for the QSB.
screen.markCells(0, 0, countX + 1, 1, FeatureFlags.QSB_ON_FIRST_SCREEN);
screen.markCells(0, 0, countX + 1, 1, FeatureFlags.topQsbOnFirstScreenEnabled(LawnchairApp.getContext()));
}
occupied.put(item.screenId, screen);
}