Commit f35ab141 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Delete image_svg_user_avatar/imageViewSvgUserAvatar

parent 4f636c27
...@@ -14,7 +14,6 @@ import chat.rocket.core.SyncState; ...@@ -14,7 +14,6 @@ import chat.rocket.core.SyncState;
public abstract class AbstractMessageViewHolder extends ModelViewHolder<PairedMessage> { public abstract class AbstractMessageViewHolder extends ModelViewHolder<PairedMessage> {
protected final RocketChatAvatar avatar; protected final RocketChatAvatar avatar;
protected final ImageView userNotFoundAvatarImageView; protected final ImageView userNotFoundAvatarImageView;
protected final ImageView imageViewSvgUserAvatar;
protected final ImageView errorImageView; protected final ImageView errorImageView;
protected final TextView username; protected final TextView username;
protected final TextView subUsername; protected final TextView subUsername;
...@@ -32,7 +31,6 @@ public abstract class AbstractMessageViewHolder extends ModelViewHolder<PairedMe ...@@ -32,7 +31,6 @@ public abstract class AbstractMessageViewHolder extends ModelViewHolder<PairedMe
super(itemView); super(itemView);
avatar = itemView.findViewById(R.id.user_avatar); avatar = itemView.findViewById(R.id.user_avatar);
userNotFoundAvatarImageView = itemView.findViewById(R.id.userNotFoundAvatarImageView); userNotFoundAvatarImageView = itemView.findViewById(R.id.userNotFoundAvatarImageView);
imageViewSvgUserAvatar = itemView.findViewById(R.id.image_svg_user_avatar);
errorImageView = itemView.findViewById(R.id.errorImageView); errorImageView = itemView.findViewById(R.id.errorImageView);
username = itemView.findViewById(R.id.username); username = itemView.findViewById(R.id.username);
subUsername = itemView.findViewById(R.id.sub_username); subUsername = itemView.findViewById(R.id.sub_username);
......
...@@ -29,7 +29,7 @@ public class MessageNormalViewHolder extends AbstractMessageViewHolder { ...@@ -29,7 +29,7 @@ public class MessageNormalViewHolder extends AbstractMessageViewHolder {
@Override @Override
protected void bindMessage(PairedMessage pairedMessage, boolean autoloadImages) { protected void bindMessage(PairedMessage pairedMessage, boolean autoloadImages) {
MessageRenderer messageRenderer = new MessageRenderer(pairedMessage.target, autoloadImages); MessageRenderer messageRenderer = new MessageRenderer(pairedMessage.target, autoloadImages);
messageRenderer.showAvatar(avatar, hostname, userNotFoundAvatarImageView, imageViewSvgUserAvatar); messageRenderer.showAvatar(avatar, hostname, userNotFoundAvatarImageView);
messageRenderer.showUsername(username, subUsername); messageRenderer.showUsername(username, subUsername);
messageRenderer.showTimestampOrMessageState(timestamp); messageRenderer.showTimestampOrMessageState(timestamp);
messageRenderer.showBody(body); messageRenderer.showBody(body);
......
...@@ -24,7 +24,7 @@ public class MessageSystemViewHolder extends AbstractMessageViewHolder { ...@@ -24,7 +24,7 @@ public class MessageSystemViewHolder extends AbstractMessageViewHolder {
@Override @Override
protected void bindMessage(PairedMessage pairedMessage, boolean autoloadImages) { protected void bindMessage(PairedMessage pairedMessage, boolean autoloadImages) {
MessageRenderer messageRenderer = new MessageRenderer(pairedMessage.target, autoloadImages); MessageRenderer messageRenderer = new MessageRenderer(pairedMessage.target, autoloadImages);
messageRenderer.showAvatar(avatar, hostname, userNotFoundAvatarImageView, imageViewSvgUserAvatar); messageRenderer.showAvatar(avatar, hostname, userNotFoundAvatarImageView);
messageRenderer.showUsername(username, subUsername); messageRenderer.showUsername(username, subUsername);
messageRenderer.showTimestampOrMessageState(timestamp); messageRenderer.showTimestampOrMessageState(timestamp);
if (pairedMessage.target != null) { if (pairedMessage.target != null) {
......
...@@ -28,13 +28,6 @@ ...@@ -28,13 +28,6 @@
app:srcCompat="@drawable/ic_user_not_found_avatar_black_24dp" app:srcCompat="@drawable/ic_user_not_found_avatar_black_24dp"
android:visibility="gone" /> android:visibility="gone" />
<ImageView
android:id="@+id/image_svg_user_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_margin="8dp"
android:visibility="gone" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
...@@ -27,13 +27,6 @@ ...@@ -27,13 +27,6 @@
app:srcCompat="@drawable/ic_user_not_found_avatar_black_24dp" app:srcCompat="@drawable/ic_user_not_found_avatar_black_24dp"
android:visibility="gone" /> android:visibility="gone" />
<ImageView
android:id="@+id/image_svg_user_avatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_margin="8dp"
android:visibility="gone" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment