Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a5ee95f authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Rename ProductionFlag to ProductionFlags

Change-Id: I5da2dbf8828fa0e176e7c2496392a5f561ebfe20
parent 6f80ed39
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
        }
    }
+3 −3
Original line number Diff line number Diff line
@@ -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(
+2 −2
Original line number Diff line number Diff line
@@ -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.
    }

+2 −2
Original line number Diff line number Diff line
@@ -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) {
+2 −2
Original line number Diff line number Diff line
@@ -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;