Fix flickering issue

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-12-13 10:55:44 +01:00 committed by Alper Öztürk (Rebase PR Action)
parent aa1658f8c9
commit 90baee0f2c

View file

@ -134,6 +134,7 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
private final SimpleDateFormat dateFormat = new SimpleDateFormat("MMMM yyyy", Locale.getDefault());
private final ViewThemeUtils viewThemeUtils;
private SearchType searchType;
private final long footerId = UUID.randomUUID().getLeastSignificantBits();
public OCFileListAdapter(
Activity activity,
@ -294,7 +295,7 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
public long getItemId(int position) {
boolean isFilesNotEmpty = mFiles == null || mFiles.size() <= position;
return (isFilesNotEmpty)
? UUID.randomUUID().getLeastSignificantBits()
? footerId
: mFiles.get(position).getFileId();
}