Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
f35ab141
Commit
f35ab141
authored
Aug 02, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete image_svg_user_avatar/imageViewSvgUserAvatar
parent
4f636c27
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
18 deletions
+2
-18
AbstractMessageViewHolder.java
...roid/layouthelper/chatroom/AbstractMessageViewHolder.java
+0
-2
MessageNormalViewHolder.java
...ndroid/layouthelper/chatroom/MessageNormalViewHolder.java
+1
-1
MessageSystemViewHolder.java
...ndroid/layouthelper/chatroom/MessageSystemViewHolder.java
+1
-1
list_item_normal_message.xml
app/src/main/res/layout/list_item_normal_message.xml
+0
-7
list_item_system_message.xml
app/src/main/res/layout/list_item_system_message.xml
+0
-7
No files found.
app/src/main/java/chat/rocket/android/layouthelper/chatroom/AbstractMessageViewHolder.java
View file @
f35ab141
...
...
@@ -14,7 +14,6 @@ import chat.rocket.core.SyncState;
public
abstract
class
AbstractMessageViewHolder
extends
ModelViewHolder
<
PairedMessage
>
{
protected
final
RocketChatAvatar
avatar
;
protected
final
ImageView
userNotFoundAvatarImageView
;
protected
final
ImageView
imageViewSvgUserAvatar
;
protected
final
ImageView
errorImageView
;
protected
final
TextView
username
;
protected
final
TextView
subUsername
;
...
...
@@ -32,7 +31,6 @@ public abstract class AbstractMessageViewHolder extends ModelViewHolder<PairedMe
super
(
itemView
);
avatar
=
itemView
.
findViewById
(
R
.
id
.
user_avatar
);
userNotFoundAvatarImageView
=
itemView
.
findViewById
(
R
.
id
.
userNotFoundAvatarImageView
);
imageViewSvgUserAvatar
=
itemView
.
findViewById
(
R
.
id
.
image_svg_user_avatar
);
errorImageView
=
itemView
.
findViewById
(
R
.
id
.
errorImageView
);
username
=
itemView
.
findViewById
(
R
.
id
.
username
);
subUsername
=
itemView
.
findViewById
(
R
.
id
.
sub_username
);
...
...
app/src/main/java/chat/rocket/android/layouthelper/chatroom/MessageNormalViewHolder.java
View file @
f35ab141
...
...
@@ -29,7 +29,7 @@ public class MessageNormalViewHolder extends AbstractMessageViewHolder {
@Override
protected
void
bindMessage
(
PairedMessage
pairedMessage
,
boolean
autoloadImages
)
{
MessageRenderer
messageRenderer
=
new
MessageRenderer
(
pairedMessage
.
target
,
autoloadImages
);
messageRenderer
.
showAvatar
(
avatar
,
hostname
,
userNotFoundAvatarImageView
,
imageViewSvgUserAvatar
);
messageRenderer
.
showAvatar
(
avatar
,
hostname
,
userNotFoundAvatarImageView
);
messageRenderer
.
showUsername
(
username
,
subUsername
);
messageRenderer
.
showTimestampOrMessageState
(
timestamp
);
messageRenderer
.
showBody
(
body
);
...
...
app/src/main/java/chat/rocket/android/layouthelper/chatroom/MessageSystemViewHolder.java
View file @
f35ab141
...
...
@@ -24,7 +24,7 @@ public class MessageSystemViewHolder extends AbstractMessageViewHolder {
@Override
protected
void
bindMessage
(
PairedMessage
pairedMessage
,
boolean
autoloadImages
)
{
MessageRenderer
messageRenderer
=
new
MessageRenderer
(
pairedMessage
.
target
,
autoloadImages
);
messageRenderer
.
showAvatar
(
avatar
,
hostname
,
userNotFoundAvatarImageView
,
imageViewSvgUserAvatar
);
messageRenderer
.
showAvatar
(
avatar
,
hostname
,
userNotFoundAvatarImageView
);
messageRenderer
.
showUsername
(
username
,
subUsername
);
messageRenderer
.
showTimestampOrMessageState
(
timestamp
);
if
(
pairedMessage
.
target
!=
null
)
{
...
...
app/src/main/res/layout/list_item_normal_message.xml
View file @
f35ab141
...
...
@@ -28,13 +28,6 @@
app:srcCompat=
"@drawable/ic_user_not_found_avatar_black_24dp"
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
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/layout/list_item_system_message.xml
View file @
f35ab141
...
...
@@ -27,13 +27,6 @@
app:srcCompat=
"@drawable/ic_user_not_found_avatar_black_24dp"
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
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment