Browse Source

Merge pull request #10522 from nextcloud/fix/folderpicker_it_open_focus

Don't allow focus on empty view and restore mis-updated screenshot
Tobias Kaminsky 2 years ago
parent
commit
c7b17ddaaa

BIN
app/screenshots/gplay/debug/com.owncloud.android.ui.activity.FolderPickerActivityIT_open.png


+ 1 - 0
app/src/main/java/com/owncloud/android/ui/EmptyRecyclerView.java

@@ -69,6 +69,7 @@ public class EmptyRecyclerView extends RecyclerView {
             int emptyCount = hasFooter ? 1 : 0;
             boolean empty = getAdapter() == null || getAdapter().getItemCount() == emptyCount;
             mEmptyView.setVisibility(empty ? VISIBLE : GONE);
+            mEmptyView.setFocusable(false);
             this.setVisibility(empty ? GONE : VISIBLE);
         }
     }