1 /* 2 * Copyright (C) 2023 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 android.text; 18 19 /** 20 * Flags in the "text" namespace. 21 * 22 * @hide 23 */ 24 public final class TextFlags { 25 26 /** 27 * The name space of the "text" feature. 28 * 29 * This needs to move to DeviceConfig constant. 30 */ 31 public static final String NAMESPACE = "text"; 32 33 /** 34 * Whether we use the new design of context menu. 35 */ 36 public static final String ENABLE_NEW_CONTEXT_MENU = 37 "TextEditing__enable_new_context_menu"; 38 39 /** 40 * The key name used in app core settings for {@link #ENABLE_NEW_CONTEXT_MENU}. 41 */ 42 public static final String KEY_ENABLE_NEW_CONTEXT_MENU = "text__enable_new_context_menu"; 43 44 /** 45 * Default value for the flag {@link #ENABLE_NEW_CONTEXT_MENU}. 46 */ 47 public static final boolean ENABLE_NEW_CONTEXT_MENU_DEFAULT = false; 48 49 } 50