FeatureFlags.java 2.6 KB

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