Use overlay method for UploadAdapter

Signed-off-by: Alper Ozturk <alperozturk@lions-macbook.local>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
Alper Ozturk 2023-10-03 14:32:00 +02:00 committed by alperozturk
parent 32b8993331
commit 4b35088377
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -104,15 +104,8 @@ public class UploaderAdapter extends SimpleAdapter {
}
if (file.isFolder()) {
final boolean isShared = file.isSharedWithMe() || file.isSharedWithSharee();
final Drawable icon = MimeTypeUtil.getFolderTypeIcon(isShared,
file.isSharedViaLink(),
file.isEncrypted(),
syncedFolderProvider.findByRemotePathAndAccount(file.getRemotePath(), user),
file.isGroupFolder(),
file.getMountType(),
mContext,
viewThemeUtils);
boolean isAutoUploadFolder = SyncedFolderProvider.isAutoUploadFolder(syncedFolderProvider, file, user);
final Drawable icon = file.getFileLayerDrawable(isAutoUploadFolder, mContext, viewThemeUtils);
fileIcon.setImageDrawable(icon);
} else {
// get Thumbnail if file is image