Merge "Revert "Revert "Fix no keyboard on N builds""" into nyc-dev

This commit is contained in:
Yohei Yukawa
2016-04-13 15:57:28 +00:00
committed by Android (Google) Code Review

View File

@@ -799,6 +799,8 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
// Asynchronously throw up the IME, since there are issues with requesting it to be shown
// immediately.
if (mLockPatternView == null && !mCooldown) {
getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
mHandler.postDelayed(new Runnable() {
@Override public void run() {
imm.showSoftInputUnchecked(0, null);