* Donot show random colors as placeholders for contributions items
* Theme contributionsItem background as mainBackground from attributes
This commit is contained in:
Ashish Kumar 2020-03-30 15:12:47 +05:30 committed by GitHub
parent 3d1ffbb4bc
commit 6416314dda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -50,8 +50,6 @@ public class ContributionViewHolder extends RecyclerView.ViewHolder {
public void init(int position, Contribution contribution) {
this.contribution = contribution;
this.position = position;
imageView.getHierarchy().setPlaceholderImage(new ColorDrawable(
Color.argb(100, random.nextInt(256), random.nextInt(256), random.nextInt(256))));
String imageSource = chooseImageSource(contribution.thumbUrl, contribution.getLocalUri());
if (!TextUtils.isEmpty(imageSource)) {
final ImageRequest imageRequest =