Also crop contact photos in ShareList

// FREEBIE
This commit is contained in:
AsamK
2015-01-23 22:58:08 +01:00
committed by Jake McGinty
parent ba62e018db
commit d586893402
2 changed files with 7 additions and 4 deletions

View File

@@ -31,10 +31,11 @@ import android.text.TextUtils;
import android.text.style.StyleSpan;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.makeramen.RoundedImageView;
import org.thoughtcrime.securesms.database.model.ThreadRecord;
import org.thoughtcrime.securesms.recipients.Recipient;
import org.thoughtcrime.securesms.recipients.Recipients;
@@ -59,7 +60,7 @@ public class ShareListItem extends RelativeLayout
private long threadId;
private TextView fromView;
private ImageView contactPhotoImage;
private RoundedImageView contactPhotoImage;
private final Handler handler = new Handler();
private int distributionType;
@@ -77,7 +78,7 @@ public class ShareListItem extends RelativeLayout
@Override
protected void onFinishInflate() {
this.fromView = (TextView) findViewById(R.id.from);
this.contactPhotoImage = (ImageView) findViewById(R.id.contact_photo_image);
this.contactPhotoImage = (RoundedImageView) findViewById(R.id.contact_photo_image);
}
public void set(ThreadRecord thread) {