|
@@ -50,6 +50,7 @@ import com.owncloud.android.ui.dialog.ExpirationDatePickerDialogFragment;
|
|
|
import com.owncloud.android.ui.fragment.util.SharingMenuHelper;
|
|
|
import com.owncloud.android.utils.DisplayUtils;
|
|
|
import com.owncloud.android.utils.ThemeUtils;
|
|
|
+import com.owncloud.android.utils.DisplayUtils;
|
|
|
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
import java.util.List;
|
|
@@ -377,6 +378,23 @@ public class UserListAdapter extends RecyclerView.Adapter<UserListAdapter.UserVi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void avatarGenerated(Drawable avatarDrawable, Object callContext) {
|
|
|
+ if (callContext instanceof ImageView) {
|
|
|
+ ImageView iv = (ImageView) callContext;
|
|
|
+ iv.setImageDrawable(avatarDrawable);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean shouldCallGeneratedCallback(String tag, Object callContext) {
|
|
|
+ if (callContext instanceof ImageView) {
|
|
|
+ ImageView iv = (ImageView) callContext;
|
|
|
+ return String.valueOf(iv.getTag()).equals(tag);
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
public interface ShareeListAdapterListener {
|
|
|
/**
|
|
|
* unshare with given sharee {@link OCShare}.
|