am 74a2813e: Merge "[SetupWizardLib] Allow showing keyboard in immersive dialogs" into ub-setupwizard-alatar
* commit '74a2813e8f4867ef32b05c3f275d0a7e887c36dd': [SetupWizardLib] Allow showing keyboard in immersive dialogs
This commit is contained in:
commit
f081e79b20
|
@ -202,6 +202,10 @@ public class SystemBarHelper {
|
||||||
private static void temporarilyDisableDialogFocus(final Window window) {
|
private static void temporarilyDisableDialogFocus(final Window window) {
|
||||||
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
|
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
|
||||||
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() {
|
new Handler().post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Reference in a new issue