Home | History | Annotate | Download | only in config
      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 
     29     BaseFlags() {}
     30 
     31     public static final boolean IS_DOGFOOD_BUILD = false;
     32     public static final String AUTHORITY = "com.android.launcher3.settings".intern();
     33 
     34     // When enabled allows to use any point on the fast scrollbar to start dragging.
     35     public static final boolean LAUNCHER3_DIRECT_SCROLL = true;
     36     // When enabled the promise icon is visible in all apps while installation an app.
     37     public static final boolean LAUNCHER3_PROMISE_APPS_IN_ALL_APPS = false;
     38     // When enabled allows use of spring motions on the icons.
     39     public static final boolean LAUNCHER3_SPRING_ICONS = true;
     40 
     41     // Feature flag to enable moving the QSB on the 0th screen of the workspace.
     42     public static final boolean QSB_ON_FIRST_SCREEN = true;
     43     // When enabled the all-apps icon is not added to the hotseat.
     44     public static final boolean NO_ALL_APPS_ICON = true;
     45 
     46     // When true, custom widgets are loaded using CustomWidgetParser.
     47     public static final boolean ENABLE_CUSTOM_WIDGETS = false;
     48 
     49     // Features to control Launcher3Go behavior
     50     public static final boolean GO_DISABLE_WIDGETS = false;
     51 
     52     // When enabled shows a work profile tab in all apps
     53     public static final boolean ALL_APPS_TABS_ENABLED = true;
     54 
     55     // When true, overview shows screenshots in the orientation they were taken rather than
     56     // trying to make them fit the orientation the device is in.
     57     public static final boolean OVERVIEW_USE_SCREENSHOT_ORIENTATION = true;
     58 }
     59