You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AndroidFilePickerLightLibrary/src/main/java/com/maxieds/androidfilepickerlightlibrary/BasicFileProvider.java
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -351,18 +351,19 @@ public Cursor queryChildDocuments(String parentDocumentId, String[] projection,
Copy file name to clipboardExpand all lines: AndroidFilePickerLightLibrary/src/main/java/com/maxieds/androidfilepickerlightlibrary/DisplayAdapters.java
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -47,16 +47,18 @@ public FileListAdapter(List<String> nextFileListData, List<DisplayTypes.FileType
Copy file name to clipboardExpand all lines: AndroidFilePickerLightLibrary/src/main/java/com/maxieds/androidfilepickerlightlibrary/DisplayFragments.java
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -238,14 +238,27 @@ public void displayNextDirectoryFilesList(List<DisplayTypes.FileType> workingDir
238
238
activeFileItemsDataList.clear();
239
239
fileItemBasePathsList.clear();
240
240
241
+
// This apparently needs to be done when updating the recycler view by posting new data.
242
+
// Without this, the size of the list of views it stores grows without bound.
243
+
// The other option is to set rv.setHasFixedSize(true), but this similarly causes problems by
244
+
// freezing the scrolling when trying to update the layout with new data.
245
+
// Thus we are having to just manually clear all the views on each data update to initialize the
246
+
// list of subdisplays from a blank container (or thereabouts explains it).
0 commit comments