am 3ff6fa72: am 5a5ee95f: Rename ProductionFlag to ProductionFlags
* commit '3ff6fa72fb5c27fc4936420979806ff9fd6ff44e': Rename ProductionFlag to ProductionFlagsmain
commit
86ca4988c2
|
@ -17,7 +17,7 @@
|
|||
package com.android.inputmethod.compat;
|
||||
|
||||
import android.inputmethodservice.InputMethodService;
|
||||
import com.android.inputmethod.latin.define.ProductionFlag;
|
||||
import com.android.inputmethod.latin.define.ProductionFlags;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
|
@ -37,7 +37,7 @@ public final class InputMethodServiceCompatUtils {
|
|||
}
|
||||
|
||||
public static void setCursorAnchorMonitorMode(final InputMethodService ims, final int mode) {
|
||||
if (ProductionFlag.USES_CURSOR_ANCHOR_MONITOR) {
|
||||
if (ProductionFlags.USES_CURSOR_ANCHOR_MONITOR) {
|
||||
ExperimentalAPIUtils.setCursorAnchorMonitorMode(ims, mode);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ import com.android.inputmethod.keyboard.MainKeyboardView;
|
|||
import com.android.inputmethod.latin.Suggest.OnGetSuggestedWordsCallback;
|
||||
import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
||||
import com.android.inputmethod.latin.define.DebugFlags;
|
||||
import com.android.inputmethod.latin.define.ProductionFlag;
|
||||
import com.android.inputmethod.latin.define.ProductionFlags;
|
||||
import com.android.inputmethod.latin.inputlogic.InputLogic;
|
||||
import com.android.inputmethod.latin.personalization.ContextualDictionaryUpdater;
|
||||
import com.android.inputmethod.latin.personalization.DictionaryDecayBroadcastReciever;
|
||||
|
@ -413,7 +413,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
if (latinIme != null) {
|
||||
executePendingImsCallback(latinIme, editorInfo, restarting);
|
||||
latinIme.onStartInputInternal(editorInfo, restarting);
|
||||
if (ProductionFlag.USES_CURSOR_ANCHOR_MONITOR) {
|
||||
if (ProductionFlags.USES_CURSOR_ANCHOR_MONITOR) {
|
||||
// Currently we need to call this every time when the IME is attached to
|
||||
// new application.
|
||||
// TODO: Consider if we can do this automatically in the framework.
|
||||
|
@ -1564,7 +1564,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
// Hooks for hardware keyboard
|
||||
@Override
|
||||
public boolean onKeyDown(final int keyCode, final KeyEvent keyEvent) {
|
||||
if (!ProductionFlag.IS_HARDWARE_KEYBOARD_SUPPORTED) {
|
||||
if (!ProductionFlags.IS_HARDWARE_KEYBOARD_SUPPORTED) {
|
||||
return super.onKeyDown(keyCode, keyEvent);
|
||||
}
|
||||
final Event event = getHardwareKeyEventDecoder(
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
package com.android.inputmethod.latin.define;
|
||||
|
||||
public final class ProductionFlag {
|
||||
private ProductionFlag() {
|
||||
public final class ProductionFlags {
|
||||
private ProductionFlags() {
|
||||
// This class is not publicly instantiable.
|
||||
}
|
||||
|
|
@ -43,7 +43,7 @@ import com.android.inputmethod.keyboard.KeyboardTheme;
|
|||
import com.android.inputmethod.latin.AudioAndHapticFeedbackManager;
|
||||
import com.android.inputmethod.latin.R;
|
||||
import com.android.inputmethod.latin.SubtypeSwitcher;
|
||||
import com.android.inputmethod.latin.define.ProductionFlag;
|
||||
import com.android.inputmethod.latin.define.ProductionFlags;
|
||||
import com.android.inputmethod.latin.setup.LauncherIconVisibilityManager;
|
||||
import com.android.inputmethod.latin.userdictionary.UserDictionaryList;
|
||||
import com.android.inputmethod.latin.userdictionary.UserDictionarySettings;
|
||||
|
@ -199,7 +199,7 @@ public final class SettingsFragment extends InputMethodSettingsFragment
|
|||
correctionScreen.removePreference(dictionaryLink);
|
||||
}
|
||||
|
||||
if (ProductionFlag.IS_METRICS_LOGGING_SUPPORTED) {
|
||||
if (ProductionFlags.IS_METRICS_LOGGING_SUPPORTED) {
|
||||
final Preference enableMetricsLogging =
|
||||
findPreference(Settings.PREF_ENABLE_METRICS_LOGGING);
|
||||
if (enableMetricsLogging != null) {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package com.android.inputmethod.latin.utils;
|
||||
|
||||
import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
||||
import com.android.inputmethod.latin.define.ProductionFlag;
|
||||
import com.android.inputmethod.latin.define.ProductionFlags;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -43,7 +43,7 @@ public final class SuggestionResults extends TreeSet<SuggestedWordInfo> {
|
|||
super(comparator);
|
||||
mLocale = locale;
|
||||
mCapacity = capacity;
|
||||
if (ProductionFlag.INCLUDE_RAW_SUGGESTIONS) {
|
||||
if (ProductionFlags.INCLUDE_RAW_SUGGESTIONS) {
|
||||
mRawSuggestions = new ArrayList<>();
|
||||
} else {
|
||||
mRawSuggestions = null;
|
||||
|
|
Loading…
Reference in New Issue