From 127d3f8e07df683aa64a9e03dc7c16d5a019247c Mon Sep 17 00:00:00 2001 From: Guiorgy Date: Mon, 10 Jun 2019 11:28:46 +0400 Subject: [PATCH] . --- .../com/obsez/android/lib/smbfilechooser/FileChooserDialog.java | 2 +- .../obsez/android/lib/smbfilechooser/SmbFileChooserDialog.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/main/java/com/obsez/android/lib/smbfilechooser/FileChooserDialog.java b/library/src/main/java/com/obsez/android/lib/smbfilechooser/FileChooserDialog.java index 24d477f3..0f691808 100644 --- a/library/src/main/java/com/obsez/android/lib/smbfilechooser/FileChooserDialog.java +++ b/library/src/main/java/com/obsez/android/lib/smbfilechooser/FileChooserDialog.java @@ -1465,7 +1465,7 @@ public boolean onKey(final DialogInterface dialog, final int keyCode, final KeyE if (!_list.hasFocus()) { switch (keyCode) { case KeyEvent.KEYCODE_DPAD_UP: - if (_btnNeutral == null) return; + if (_btnNeutral == null) return false; if (_btnNeutral.hasFocus() || _btnNegative.hasFocus() || _btnPositive.hasFocus()) { if (_options != null && _options.getVisibility() == VISIBLE) { _options.requestFocus(_btnNeutral.hasFocus() ? FOCUS_RIGHT : FOCUS_LEFT); diff --git a/library/src/main/java/com/obsez/android/lib/smbfilechooser/SmbFileChooserDialog.java b/library/src/main/java/com/obsez/android/lib/smbfilechooser/SmbFileChooserDialog.java index 23dce479..d6c5d8b1 100644 --- a/library/src/main/java/com/obsez/android/lib/smbfilechooser/SmbFileChooserDialog.java +++ b/library/src/main/java/com/obsez/android/lib/smbfilechooser/SmbFileChooserDialog.java @@ -1784,7 +1784,7 @@ public boolean onKey(final DialogInterface dialog, final int keyCode, final KeyE if (!_list.hasFocus()) { switch (keyCode) { case KeyEvent.KEYCODE_DPAD_UP: - if (_btnNeutral == null) return; + if (_btnNeutral == null) return false; if (_btnNeutral.hasFocus() || _btnNegative.hasFocus() || _btnPositive.hasFocus()) { if (_options != null && _options.getVisibility() == VISIBLE) { _options.requestFocus(_btnNeutral.hasFocus() ? FOCUS_RIGHT : FOCUS_LEFT);