mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 03:49:58 +02:00
use QR icon for QR-invite/join button
This commit is contained in:
parent
daeeca32ae
commit
35669aa83e
2 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package org.thoughtcrime.securesms.components;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
@ -44,6 +45,10 @@ public class AvatarView extends ConstraintLayout {
|
|||
avatarImage.setAvatar(requestManager, recipient, quickContactEnabled);
|
||||
}
|
||||
|
||||
public void setImageDrawable(@Nullable Drawable drawable) {
|
||||
avatarImage.setImageDrawable(drawable);
|
||||
}
|
||||
|
||||
public void setAvatarClickListener(OnClickListener listener) {
|
||||
avatarImage.setOnClickListener(listener);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue