1 /* 2 * Copyright (C) 2015 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 public final class FeatureFlags { FeatureFlags()23 private FeatureFlags() {} 24 25 // Custom flags go below this 26 public static boolean LAUNCHER3_DISABLE_ICON_NORMALIZATION = false; 27 public static boolean LAUNCHER3_LEGACY_FOLDER_ICON = false; 28 public static boolean LAUNCHER3_USE_SYSTEM_DRAG_DRIVER = true; 29 public static boolean LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW = false; 30 public static boolean LAUNCHER3_ALL_APPS_PULL_UP = true; 31 public static boolean LAUNCHER3_NEW_FOLDER_ANIMATION = false; 32 // When enabled allows to use any point on the fast scrollbar to start dragging. 33 public static boolean LAUNCHER3_DIRECT_SCROLL = true; 34 // When enabled while all-apps open, the soft input will be set to adjust resize . 35 public static boolean LAUNCHER3_UPDATE_SOFT_INPUT_MODE = false; 36 37 38 // Feature flag to enable moving the QSB on the 0th screen of the workspace. 39 public static final boolean QSB_ON_FIRST_SCREEN = true; 40 // When enabled the all-apps icon is not added to the hotseat. 41 public static final boolean NO_ALL_APPS_ICON = true; 42 // When enabled fling down gesture on the first workspace triggers search. 43 public static final boolean PULLDOWN_SEARCH = false; 44 // When enabled the status bar may show dark icons based on the top of the wallpaper. 45 public static final boolean LIGHT_STATUS_BAR = false; 46 // When enabled icons are badged with the number of notifications associated with that app. 47 public static final boolean BADGE_ICONS = true; 48 // When enabled, icons not supporting {@link AdaptiveIconDrawable} will be wrapped in this class. 49 public static final boolean LEGACY_ICON_TREATMENT = true; 50 // When enabled, adaptive icons would have shadows baked when being stored to icon cache. 51 public static final boolean ADAPTIVE_ICON_SHADOW = true; 52 // When enabled, app discovery will be enabled if service is implemented 53 public static final boolean DISCOVERY_ENABLED = false; 54 } 55