Fix a crash in the path to auto-show the IME

Upon cold launch of Browser2, its window gets input focus immediately.
InputMethodManagerService, due to IPC from InputMethodManager.onPostWindowFocus,
tries to auto-show the IME before the input session/connection between IME and
Browser2 is set up successfully. This is why getCurrentInputConnection() returns
null in onStartInputView().

EditorInfo.initialCapsMode has been set to the same value, just use it directly.

Test: reboot device or emulator, launch Browser2, search am_crash

Bug: 116830903

Change-Id: I545ce7da912d140c54722e265111accb38b7e361
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
diff --git a/src/com/android/inputmethod/latin/CarLatinIME.java b/src/com/android/inputmethod/latin/CarLatinIME.java
index a5ecebb..0a5cd0b 100644
--- a/src/com/android/inputmethod/latin/CarLatinIME.java
+++ b/src/com/android/inputmethod/latin/CarLatinIME.java
@@ -196,8 +196,7 @@
                 getResources().getDimensionPixelSize(R.dimen.keyboard_padding_vertical), 0, 0);
         mKeyboardView.setOnKeyboardActionListener(mKeyboardActionListener);
         mPopupKeyboardView.setOnKeyboardActionListener(mPopupKeyboardActionListener);
-        mKeyboardView.setShifted(mKeyboardView.isShifted());
-        updateCapitalization();
+        mKeyboardView.setShifted(mEditorInfo.initialCapsMode != 0);
     }
 
     public Locale getLocale() {