Skip to content

Commit f313b9e

Browse files
Peter EliassonJohan Redestig
authored andcommitted
Adding pan behavior on preference dialog.
Changed the preference dialog with text input to pan if the display area is limited. This helps the user to see the input better. Change-Id: I12341546f6f82601ac5a2746153255a9b2d49a1c
1 parent c5371fa commit f313b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/preference/DialogPreference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ protected boolean needInputMethod() {
322322
private void requestInputMethod(Dialog dialog) {
323323
Window window = dialog.getWindow();
324324
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE |
325-
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
325+
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
326326
}
327327

328328
/**

0 commit comments

Comments
 (0)