diff --git a/project/app/src/main/java/com/achep/base/ui/preferences/MaterialDialogPreference.java b/project/app/src/main/java/com/achep/base/ui/preferences/MaterialDialogPreference.java index e01f2268..debb63af 100644 --- a/project/app/src/main/java/com/achep/base/ui/preferences/MaterialDialogPreference.java +++ b/project/app/src/main/java/com/achep/base/ui/preferences/MaterialDialogPreference.java @@ -118,12 +118,12 @@ public void onClick(@NonNull MaterialDialog materialDialog, public abstract MaterialDialog onBuildDialog(@NonNull MaterialDialog.Builder builder); /** - * Sets the required flags on the dialog window to enable input method window to show up. - */ - private void requestInputMethod(Dialog dialog) { - Window window = dialog.getWindow(); - window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); - } + * Sets the required flags on the dialog window to enable input method window to show up. + */ + private static void requestInputMethod(Dialog dialog) { + Window window = dialog.getWindow(); + window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); + } /** * Returns whether the preference needs to display a soft input method when the dialog