Fix no keyboard on N builds

Bug: 25942488
Bug: 26190615
Change-Id: Ifd588bf7db76f9ea5d6a90854f8e92f86f4c2910
This commit is contained in:
Paul Lawrence
2015-12-14 14:42:48 -08:00
committed by Ian Pedowitz
parent a48f16fe01
commit 250faf9243

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);