From d14ce0218e1d6a93d660adf668d1d24ea07e01d1 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 28 Mar 2019 06:57:32 +0100 Subject: [PATCH] do not show avatar if ownerId is null Signed-off-by: tobiasKaminsky --- .../android/ui/adapter/OCFileListAdapter.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java b/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java index a1f6f428de..f5dcea30b7 100644 --- a/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java +++ b/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java @@ -38,12 +38,7 @@ import android.widget.Filter; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; -import androidx.annotation.NonNull; -import androidx.core.graphics.drawable.RoundedBitmapDrawable; -import androidx.core.graphics.drawable.RoundedBitmapDrawableFactory; -import androidx.recyclerview.widget.RecyclerView; -import butterknife.BindView; -import butterknife.ButterKnife; + import com.bumptech.glide.Glide; import com.bumptech.glide.request.target.BitmapImageViewTarget; import com.nextcloud.client.preferences.AppPreferences; @@ -84,6 +79,13 @@ import java.util.Locale; import java.util.Set; import java.util.Vector; +import androidx.annotation.NonNull; +import androidx.core.graphics.drawable.RoundedBitmapDrawable; +import androidx.core.graphics.drawable.RoundedBitmapDrawableFactory; +import androidx.recyclerview.widget.RecyclerView; +import butterknife.BindView; +import butterknife.ButterKnife; + /** * This Adapter populates a RecyclerView with all files and folders in a Nextcloud instance. */ @@ -316,7 +318,8 @@ public class OCFileListAdapter extends RecyclerView.Adapter