mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 01:28:21 +00:00
This is the first step in adding a flag toggler UI to launcher. The change migrates a single flag (QSB_ON_FIRST_SCREEN) from a boolean constant to a boolean method. In future, that will allow us to return different values at runtime. Bug: 117223984 Change-Id: I1e62c91dd941b8145166021bc0aa157733e62ea0
33 lines
1012 B
Java
33 lines
1012 B
Java
/*
|
|
* 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;
|
|
|
|
import android.content.Context;
|
|
|
|
/**
|
|
* Defines a set of flags used to control various launcher behaviors
|
|
*/
|
|
public final class FeatureFlags extends BaseFlags {
|
|
private static FeatureFlags instance = new FeatureFlags();
|
|
|
|
public static FeatureFlags getInstance(Context context) {
|
|
return instance;
|
|
}
|
|
|
|
private FeatureFlags() {}
|
|
}
|