summaryrefslogtreecommitdiffstats
path: root/src_config
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-05-23 21:40:53 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-05-24 14:11:24 -0700
commitd83a67a6b44961f353ec1a99b92bfb747f418e02 (patch)
treefa06c6c4bcea7853c8e26a01c91a8735fa730bd0 /src_config
parent33c2ed341e376bf8778cf10a98ace072e2ea3bbe (diff)
downloadandroid_packages_apps_Trebuchet-d83a67a6b44961f353ec1a99b92bfb747f418e02.tar.gz
android_packages_apps_Trebuchet-d83a67a6b44961f353ec1a99b92bfb747f418e02.tar.bz2
android_packages_apps_Trebuchet-d83a67a6b44961f353ec1a99b92bfb747f418e02.zip
Separating out configs and common manifest entries
This separation allows for easier modification of Launcher3 by derivative projects Change-Id: Ib3469e9b5d2707daef572050698d792316534d45
Diffstat (limited to 'src_config')
-rw-r--r--src_config/com/android/launcher3/config/FeatureFlags.java32
-rw-r--r--src_config/com/android/launcher3/config/ProviderConfig.java24
2 files changed, 56 insertions, 0 deletions
diff --git a/src_config/com/android/launcher3/config/FeatureFlags.java b/src_config/com/android/launcher3/config/FeatureFlags.java
new file mode 100644
index 000000000..34c6663e9
--- /dev/null
+++ b/src_config/com/android/launcher3/config/FeatureFlags.java
@@ -0,0 +1,32 @@
+/*
+ * 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 {
+ private FeatureFlags() {}
+
+ // Custom flags go below this
+ public static boolean LAUNCHER3_DISABLE_ICON_NORMALIZATION = false;
+ // As opposed to the new spring-loaded workspace.
+ public static boolean LAUNCHER3_LEGACY_WORKSPACE_DND = false;
+ public static boolean LAUNCHER3_LEGACY_FOLDER_ICON = false;
+ public static boolean LAUNCHER3_USE_SYSTEM_DRAG_DRIVER = false;
+ public static boolean LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW = false;
+}
diff --git a/src_config/com/android/launcher3/config/ProviderConfig.java b/src_config/com/android/launcher3/config/ProviderConfig.java
new file mode 100644
index 000000000..1d964b1b2
--- /dev/null
+++ b/src_config/com/android/launcher3/config/ProviderConfig.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2013 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;
+
+public class ProviderConfig {
+
+ public static final String AUTHORITY = "com.android.launcher3.settings".intern();
+
+ public static boolean IS_DOGFOOD_BUILD = true;
+}