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

View File

@@ -58,6 +58,8 @@ import java.util.Map;
import java.util.function.BiConsumer;
import java.util.stream.Collectors;
import app.lawnchair.LawnchairApp;
/**
* All the data stored in-memory and managed by the LauncherModel
*/
@@ -141,7 +143,7 @@ public class BgDataModel {
screenSet.add(item.screenId);
}
}
if (FeatureFlags.QSB_ON_FIRST_SCREEN || screenSet.isEmpty()) {
if (FeatureFlags.topQsbOnFirstScreenEnabled(LawnchairApp.getContext()) || screenSet.isEmpty()) {
screenSet.add(Workspace.FIRST_SCREEN_ID);
}
return screenSet.getArray();