2015-12-07 15:00:24 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2015 The Android Open Source Project
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package com.android.launcher3.config;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Defines a set of flags used to control various launcher behaviors
|
|
|
|
|
*/
|
|
|
|
|
public final class FeatureFlags {
|
2017-03-06 16:56:39 -08:00
|
|
|
|
|
|
|
|
public static final boolean IS_DOGFOOD_BUILD = true;
|
|
|
|
|
|
2015-12-07 15:00:24 -08:00
|
|
|
private FeatureFlags() {}
|
|
|
|
|
|
|
|
|
|
// Custom flags go below this
|
2016-03-03 13:19:24 -08:00
|
|
|
public static boolean LAUNCHER3_DISABLE_ICON_NORMALIZATION = false;
|
2016-02-24 19:19:06 -08:00
|
|
|
public static boolean LAUNCHER3_LEGACY_FOLDER_ICON = false;
|
2016-09-12 14:36:30 -07:00
|
|
|
public static boolean LAUNCHER3_USE_SYSTEM_DRAG_DRIVER = true;
|
2016-03-22 16:20:53 -07:00
|
|
|
public static boolean LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW = false;
|
2016-05-27 12:10:03 -07:00
|
|
|
public static boolean LAUNCHER3_ALL_APPS_PULL_UP = true;
|
2017-03-07 08:22:05 -08:00
|
|
|
public static boolean LAUNCHER3_NEW_FOLDER_ANIMATION = true;
|
2017-03-03 10:58:06 -08:00
|
|
|
// When enabled allows to use any point on the fast scrollbar to start dragging.
|
|
|
|
|
public static boolean LAUNCHER3_DIRECT_SCROLL = true;
|
|
|
|
|
// When enabled while all-apps open, the soft input will be set to adjust resize .
|
|
|
|
|
public static boolean LAUNCHER3_UPDATE_SOFT_INPUT_MODE = false;
|
2017-03-15 11:56:47 -07:00
|
|
|
// When enabled the promise icon is visible in all apps while installation an app.
|
2017-03-21 15:49:06 -07:00
|
|
|
public static boolean LAUNCHER3_PROMISE_APPS_IN_ALL_APPS = true;
|
2016-06-10 12:22:04 -07:00
|
|
|
|
2016-09-16 12:03:27 -07:00
|
|
|
// Feature flag to enable moving the QSB on the 0th screen of the workspace.
|
2016-06-10 12:22:04 -07:00
|
|
|
public static final boolean QSB_ON_FIRST_SCREEN = true;
|
2016-06-15 15:42:29 -07:00
|
|
|
// When enabled the all-apps icon is not added to the hotseat.
|
|
|
|
|
public static final boolean NO_ALL_APPS_ICON = true;
|
2016-09-16 12:03:27 -07:00
|
|
|
// When enabled fling down gesture on the first workspace triggers search.
|
2016-10-06 12:37:45 -07:00
|
|
|
public static final boolean PULLDOWN_SEARCH = false;
|
2016-10-12 14:55:46 -07:00
|
|
|
// When enabled the status bar may show dark icons based on the top of the wallpaper.
|
|
|
|
|
public static final boolean LIGHT_STATUS_BAR = false;
|
2017-01-20 08:15:28 -08:00
|
|
|
// When enabled icons are badged with the number of notifications associated with that app.
|
|
|
|
|
public static final boolean BADGE_ICONS = true;
|
2017-03-20 16:15:40 -07:00
|
|
|
// When enabled, icons not supporting {@link AdaptiveIconDrawable} will be wrapped in {@link FixedScaleDrawable}.
|
|
|
|
|
public static final boolean LEGACY_ICON_TREATMENT = true;
|
2017-03-02 12:36:08 -08:00
|
|
|
// When enabled, adaptive icons would have shadows baked when being stored to icon cache.
|
|
|
|
|
public static final boolean ADAPTIVE_ICON_SHADOW = true;
|
2017-02-17 12:16:13 -08:00
|
|
|
// When enabled, app discovery will be enabled if service is implemented
|
|
|
|
|
public static final boolean DISCOVERY_ENABLED = false;
|
2015-12-07 15:00:24 -08:00
|
|
|
}
|