summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-06-09 18:28:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-09 18:29:12 +0000
commit74a2813e8f4867ef32b05c3f275d0a7e887c36dd (patch)
treeff453e7134a6c6dda870423f74af2062cbddae7f
parentd0261a881860fb7daed804bea6c042f328e334ed (diff)
parent35ef4eb340353962f23cab81a33b2ddbdfce1da7 (diff)
downloadsetupwizard-74a2813e8f4867ef32b05c3f275d0a7e887c36dd.tar.gz
Merge "[SetupWizardLib] Allow showing keyboard in immersive dialogs" into ub-setupwizard-alatar
-rw-r--r--library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java b/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java
index 2bc00a1..a0e765d 100644
--- a/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java
+++ b/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java
@@ -202,6 +202,10 @@ public class SystemBarHelper {
private static void temporarilyDisableDialogFocus(final Window window) {
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);
+ // Add the SOFT_INPUT_IS_FORWARD_NAVIGATION_FLAG. This is normally done by the system when
+ // FLAG_NOT_FOCUSABLE is not set. Setting this flag allows IME to be shown automatically
+ // if the dialog has editable text fields.
+ window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_IS_FORWARD_NAVIGATION);
new Handler().post(new Runnable() {
@Override
public void run() {