1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.launcher3.config; 18 19 /** 20 * Defines a set of flags used to control various launcher behaviors. 21 * 22 * All the flags should be defined here with appropriate default values. To override a value, 23 * redefine it in {@link FeatureFlags}. 24 * 25 * This class is kept package-private to prevent direct access. 26 */ 27 abstract class BaseFlags { 28 BaseFlags()29 BaseFlags() {} 30 31 public static final boolean IS_DOGFOOD_BUILD = false; 32 33 // Custom flags go below this 34 public static boolean LAUNCHER3_DISABLE_ICON_NORMALIZATION = false; 35 public static boolean LAUNCHER3_LEGACY_FOLDER_ICON = false; 36 public static boolean LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW = false; 37 public static boolean LAUNCHER3_NEW_FOLDER_ANIMATION = true; 38 // When enabled allows to use any point on the fast scrollbar to start dragging. 39 public static final boolean LAUNCHER3_DIRECT_SCROLL = true; 40 // When enabled while all-apps open, the soft input will be set to adjust resize . 41 public static final boolean LAUNCHER3_UPDATE_SOFT_INPUT_MODE = false; 42 // When enabled the promise icon is visible in all apps while installation an app. 43 public static final boolean LAUNCHER3_PROMISE_APPS_IN_ALL_APPS = false; 44 // When enabled uses the AllAppsRadialGradientAndScrimDrawable for all apps 45 public static final boolean LAUNCHER3_GRADIENT_ALL_APPS = true; 46 // When enabled allows use of physics based motions in the Launcher. 47 public static final boolean LAUNCHER3_PHYSICS = true; 48 // When enabled allows use of spring motions on the icons. 49 public static final boolean LAUNCHER3_SPRING_ICONS = true; 50 51 // Feature flag to enable moving the QSB on the 0th screen of the workspace. 52 public static final boolean QSB_ON_FIRST_SCREEN = true; 53 // When enabled the all-apps icon is not added to the hotseat. 54 public static final boolean NO_ALL_APPS_ICON = true; 55 // When enabled fling down gesture on the first workspace triggers search. 56 public static final boolean PULLDOWN_SEARCH = false; 57 // When enabled the status bar may show dark icons based on the top of the wallpaper. 58 public static final boolean LIGHT_STATUS_BAR = false; 59 // When enabled, icons not supporting {@link AdaptiveIconDrawable} will be wrapped in {@link FixedScaleDrawable}. 60 public static final boolean LEGACY_ICON_TREATMENT = true; 61 // When enabled, adaptive icons would have shadows baked when being stored to icon cache. 62 public static final boolean ADAPTIVE_ICON_SHADOW = true; 63 // When enabled, app discovery will be enabled if service is implemented 64 public static final boolean DISCOVERY_ENABLED = false; 65 // When enabled, the qsb will be moved to the hotseat. 66 public static final boolean QSB_IN_HOTSEAT = true; 67 68 // Features to control Launcher3Go behavior 69 public static final boolean GO_DISABLE_WIDGETS = false; 70 } 71