-
Notifications
You must be signed in to change notification settings - Fork 27
Apply the new design on the room avatar and name #656
Conversation
- Update room avatar icon
- Add rooms type
- replace e2e_verified with the new icons - fix the display of the avatars in the rooms list in case of file sharing
which. was not used
- Update the room activity avatar display
- Update Room settings header
- Update the room access by link activity header
- Update forum avatar in the rooms directory
- Update the room activity header
LGTM |
if (room.isEncrypted()) { | ||
if (TextUtils.equals(roomAccessRule, RoomAccessRulesKt.RESTRICTED)) { | ||
vRoomType.setText(R.string.tchap_room_private_room_type); | ||
vRoomType.setTextColor(ContextCompat.getColor(context, R.color.tchap_coral_color)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's possible to use Spannable string instead of multiple textviews.
@@ -195,6 +197,28 @@ public void populateViews(final Context context, | |||
vRoomName.setText(displayName); | |||
} | |||
|
|||
if (null != vRoomType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a tool function that returns the room type. This function should be used in multiple cases.
Possible room types : PRIVATE, UNRESTRICTED or EXTERN, FORUM, DISCUSSION, UNKNOWN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I will do it later
if (mRoom.isEncrypted()) { | ||
if (TextUtils.equals(roomAccessRule, RoomAccessRulesKt.RESTRICTED)) { | ||
mActionBarTypeInfo.setText(R.string.tchap_room_long_private_room_type); | ||
mActionBarTypeInfo.setTextColor(ContextCompat.getColor(this, R.color.tchap_coral_color)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible to use a Spannablestring instead of multiple textviews.
https://medium.com/androiddevelopers/spantastic-text-styling-with-spans-17b0c16b4568
vector/src/main/java/im/vector/activity/VectorRoomActivity.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Yoan Pintas <y.pintas@gmail.com>
#648