mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fix flickering issue
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
aa1658f8c9
commit
90baee0f2c
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue