Revert "Revert "Fix no keyboard on N builds""

Looks like the underling issue is not fixed yet.

This reverts commit 7bb0465687.

Bug: 26190615
Bug: 28151196
Change-Id: Icee6d90fc4336e832f082ce2974edfa558170030
This commit is contained in:
Seigo Nonaka
2016-04-13 08:41:43 +00:00
parent 7bb0465687
commit 259775314a

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 // Asynchronously throw up the IME, since there are issues with requesting it to be shown
// immediately. // immediately.
if (mLockPatternView == null && !mCooldown) { if (mLockPatternView == null && !mCooldown) {
getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
mHandler.postDelayed(new Runnable() { mHandler.postDelayed(new Runnable() {
@Override public void run() { @Override public void run() {
imm.showSoftInputUnchecked(0, null); imm.showSoftInputUnchecked(0, null);