mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
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:
parent
32b8993331
commit
4b35088377
1 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue