23 lines
608 B
Java
23 lines
608 B
Java
package org.session.libsession.avatars;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.drawable.Drawable;
|
|
|
|
import com.makeramen.roundedimageview.RoundedDrawable;
|
|
|
|
public class TransparentContactPhoto implements FallbackContactPhoto {
|
|
|
|
public TransparentContactPhoto() {}
|
|
|
|
@Override
|
|
public Drawable asDrawable(Context context, int color) {
|
|
return asDrawable(context, color, false);
|
|
}
|
|
|
|
@Override
|
|
public Drawable asDrawable(Context context, int color, boolean inverted) {
|
|
return RoundedDrawable.fromDrawable(context.getResources().getDrawable(android.R.color.transparent));
|
|
}
|
|
|
|
}
|