mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Change drawable to layer drawable
Signed-off-by: Alper Ozturk <alperozturk@lions-macbook.local> Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
16db8c01b6
commit
aee3ffd7da
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ package com.owncloud.android.ui.adapter;
|
|||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.LayerDrawable;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
@ -105,7 +106,7 @@ public class UploaderAdapter extends SimpleAdapter {
|
|||
|
||||
if (file.isFolder()) {
|
||||
boolean isAutoUploadFolder = SyncedFolderProvider.isAutoUploadFolder(syncedFolderProvider, file, user);
|
||||
final Drawable icon = file.getFileLayerDrawable(isAutoUploadFolder, mContext, viewThemeUtils);
|
||||
final LayerDrawable icon = file.getFileLayerDrawable(isAutoUploadFolder, mContext, viewThemeUtils);
|
||||
fileIcon.setImageDrawable(icon);
|
||||
} else {
|
||||
// get Thumbnail if file is image
|
||||
|
|
Loading…
Reference in a new issue