From 71743890b071e83815d6503c679ca864770acffa Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 11 Aug 2017 22:41:29 +0200 Subject: [PATCH] rounded corners for avatar placeholder --- .../keylesspalace/tusky/AccountActivity.java | 1 - .../keylesspalace/tusky/ComposeActivity.java | 1 - .../tusky/EditProfileActivity.java | 1 - .../tusky/adapter/AccountViewHolder.java | 1 - .../tusky/adapter/BlocksAdapter.java | 1 - .../tusky/adapter/FollowRequestsAdapter.java | 1 - .../tusky/adapter/MutesAdapter.java | 1 - .../tusky/adapter/NotificationsAdapter.java | 2 -- .../tusky/adapter/StatusBaseViewHolder.java | 1 - app/src/main/res/drawable/avatar_default.png | Bin 1491 -> 1814 bytes app/src/main/res/drawable/avatar_error.png | Bin 1522 -> 0 bytes 11 files changed, 10 deletions(-) delete mode 100644 app/src/main/res/drawable/avatar_error.png diff --git a/app/src/main/java/com/keylesspalace/tusky/AccountActivity.java b/app/src/main/java/com/keylesspalace/tusky/AccountActivity.java index 7175e5ea..b33745c4 100644 --- a/app/src/main/java/com/keylesspalace/tusky/AccountActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/AccountActivity.java @@ -296,7 +296,6 @@ public class AccountActivity extends BaseActivity implements ActionButtonActivit Picasso.with(this) .load(account.avatar) .placeholder(R.drawable.avatar_default) - .error(R.drawable.avatar_error) .into(avatar); Picasso.with(this) .load(account.header) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 6f766ea1..90948ab4 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -1715,7 +1715,6 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm Picasso.with(context) .load(account.avatar) .placeholder(R.drawable.avatar_default) - .error(R.drawable.avatar_error) .transform(new RoundedTransformation(7, 0)) .into(avatar); } diff --git a/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java b/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java index 455dcc64..ba6e4c30 100644 --- a/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java @@ -179,7 +179,6 @@ public class EditProfileActivity extends BaseActivity { Picasso.with(avatar.getContext()) .load(me.avatar) .placeholder(R.drawable.avatar_default) - .error(R.drawable.avatar_error) .into(avatar); Picasso.with(header.getContext()) .load(me.header) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/AccountViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/adapter/AccountViewHolder.java index f6a5b228..4262f905 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/AccountViewHolder.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/AccountViewHolder.java @@ -37,7 +37,6 @@ class AccountViewHolder extends RecyclerView.ViewHolder { Picasso.with(context) .load(account.avatar) .placeholder(R.drawable.avatar_default) - .error(R.drawable.avatar_error) .into(avatar); } diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/BlocksAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/BlocksAdapter.java index f4e70fa7..c1153d1d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/BlocksAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/BlocksAdapter.java @@ -97,7 +97,6 @@ public class BlocksAdapter extends AccountAdapter { username.setText(formattedUsername); Picasso.with(avatar.getContext()) .load(account.avatar) - .error(R.drawable.avatar_error) .placeholder(R.drawable.avatar_default) .into(avatar); } diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/FollowRequestsAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/FollowRequestsAdapter.java index c4578e52..bd7efb45 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/FollowRequestsAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/FollowRequestsAdapter.java @@ -99,7 +99,6 @@ public class FollowRequestsAdapter extends AccountAdapter { username.setText(formattedUsername); Picasso.with(avatar.getContext()) .load(account.avatar) - .error(R.drawable.avatar_error) .placeholder(R.drawable.avatar_default) .into(avatar); } diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/MutesAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/MutesAdapter.java index e7719775..a9dfd93c 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/MutesAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/MutesAdapter.java @@ -82,7 +82,6 @@ public class MutesAdapter extends AccountAdapter { username.setText(formattedUsername); Picasso.with(avatar.getContext()) .load(account.avatar) - .error(R.drawable.avatar_error) .placeholder(R.drawable.avatar_default) .into(avatar); } diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java index 934a2e40..1f34057f 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java @@ -224,7 +224,6 @@ public class NotificationsAdapter extends RecyclerView.Adapter { .fit() .transform(new RoundedTransformation(7, 0)) .placeholder(R.drawable.avatar_default) - .error(R.drawable.avatar_error) .into(avatar); } @@ -306,7 +305,6 @@ public class NotificationsAdapter extends RecyclerView.Adapter { Picasso.with(context) .load(statusAvatarUrl) .placeholder(R.drawable.avatar_default) - .error(R.drawable.avatar_error) .transform(new RoundedTransformation(7, 0)) .into(statusAvatar); } diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java index 279773a4..aa75c589 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java @@ -111,7 +111,6 @@ class StatusBaseViewHolder extends RecyclerView.ViewHolder { Picasso.with(avatar.getContext()) .load(url) .placeholder(R.drawable.avatar_default) - .error(R.drawable.avatar_error) .transform(new RoundedTransformation(7, 0)) .into(avatar); } diff --git a/app/src/main/res/drawable/avatar_default.png b/app/src/main/res/drawable/avatar_default.png index 78f789485855190381140acbdbb70d65bc8f4703..88462d68cd47eba6adfc757848ff64eb140f1ae7 100644 GIT binary patch literal 1814 zcmZ`)Ycv~(5>D$`nrJD~mLZlntU*Ly)X@Xa%9HwAx~cSGh`- zARa-BNIlxJr5?*5pWbG|t<^J8Yd@3ym}4N&fc8~^|S z+SyvWiet=Ila&_x3s~b306==u&f3a7W@53(+v(a{jh|9WH&WYp5sgQ-8t(Lx>JkY!b@>ov(zNA=P%U(HHV{xA5y zQvZhkO8x(eWki-fq_t4>iSF*69gxRrB@$DZ*^r;%_c+NEB?AgFDjtzUK zyLQbt`doYFf1~DAvt@-D?ZE~+6$#7P)N=R?^%~?gZR*dboj~lYa}?DiA(>8tAZVinO{*x5NS7~9x0xP0+ZVp{1w70D z9k(I4Su?gdsp0A6#j~PUYg@!M^oH%%Kb^S>WVn}+)xAFtIN>qg1r=c}7eZMs$(men zcZrJ0k5Z5g{GDuqdTk@noM+Y*mPXq3OI;2B(!3LO?6^+&QO6%f2|JDO)a5sd?Z}-1!A+Xz!#9169=RJsDlf+uWM8qsV{! zPSx6A(f@E08Y1&7YXFHoGP1_Qx`J4tkt_9r@HqjvbTjJnJG3`)NRC>Tp405phT-(34NQXfYxL)j|n)NlCY_gcbB`iT0Dj^2ATjsx3aqEYFBzQ7Q#>&;;@ zJUa*Tp>xwWXzAXB3F42NizwBbA;;CO9A#)~l{g42&-wN<FbJ^th|f#+lD2dOuR+*G=w_#SEyZ0nwAUhG_nm&gT&ha?Xk}T z3yTZz6>bL7=hr1>P7|539!31V@qfV{CXvbgw!*S$^B`O$2zq)}Emz1u9(?X{e=ZA<#SnTEU&N2rQ2hzugLjSV85YkppvK0qTGr!Jt>ij1}r=fH27P-Vl8ypET~FFh=E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