Skip to content

Commit

Permalink
Update app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAd…
Browse files Browse the repository at this point in the history
…apter.java

Co-authored-by: Tom <[email protected]>
Signed-off-by: Tobias Kaminsky <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
2 people authored and AndyScherzinger committed Apr 7, 2024
1 parent f033cf3 commit 08a8ef3
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,9 @@ public void setData(List<Object> objects,
new Handler(Looper.getMainLooper()).post(this::notifyDataSetChanged);
}

@SuppressLint("NotifyDataSetChanged")
public void replaceFile(OCFile file) {
mFiles.remove(file);
mFiles.add(file);
mFiles = sortOrder.sortCloudFiles(mFiles);
notifyDataSetChanged();
mFiles.set(mFiles.indexOf(file), file);
notifyItemChanged(file);
}

private void parseShares(List<Object> objects) {
Expand Down

0 comments on commit 08a8ef3

Please sign in to comment.