Add option to hide At a Glance widget (#2141)
Co-authored-by: Patryk Michalik <contact@patrykmichalik.com>
This commit is contained in:
1 parent
e275fcfe93
commit
9affffe0ff
15 files changed
+48
-16
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user