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

Commit 267cd015 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Add special handling for "Phone number" layout.

Bug: 5743584
Change-Id: I821b837a2078afb64b460191c98b28f7733cf2c1
parent aa59e24e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -139,6 +139,12 @@ public class KeyboardSwitcher implements KeyboardState.SwitchActions,
            mSymbolsShiftedKeyboardId = getKeyboardId(editorInfo, true, true, settingsValues);
            mState.onLoadKeyboard(mResources.getString(R.string.layout_switch_back_symbols),
                    hasDistinctMultitouch());
            // TODO: Should get rid of this special case handling for Phone Number layouts once we
            // have separate layouts with unique KeyboardIds for alphabet and alphabet-shifted
            // respectively.
            if (mMainKeyboardId.isPhoneKeyboard()) {
                mState.onToggleAlphabetAndSymbols();
            }
        } catch (RuntimeException e) {
            Log.w(TAG, "loading keyboard failed: " + mMainKeyboardId, e);
            LatinImeLogger.logOnException(mMainKeyboardId.toString(), e);