File tree 4 files changed +32
-1
lines changed
java/im/vector/app/features
4 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -1433,6 +1433,7 @@ class RoomDetailFragment @Inject constructor(
1433
1433
renderSubTitle(typingMessage, roomSummary.topic)
1434
1434
views.roomToolbarDecorationImageView.render(roomSummary.roomEncryptionTrustLevel)
1435
1435
views.roomToolbarPresenceImageView.render(roomSummary.isDirect, roomSummary.directUserPresence)
1436
+ views.roomToolbarPublicImageView.isVisible = roomSummary.isPublic && ! roomSummary.isDirect
1436
1437
}
1437
1438
}
1438
1439
Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ class RoomProfileFragment @Inject constructor(
220
220
headerViews.roomProfileDecorationImageView.render(it.roomEncryptionTrustLevel)
221
221
views.matrixProfileDecorationToolbarAvatarImageView.render(it.roomEncryptionTrustLevel)
222
222
headerViews.roomProfilePresenceImageView.render(it.isDirect, it.directUserPresence)
223
+ headerViews.roomProfilePublicImageView.isVisible = it.isPublic && ! it.isDirect
223
224
}
224
225
}
225
226
roomProfileController.setData(state)
Original file line number Diff line number Diff line change 53
53
app : layout_constraintStart_toEndOf =" @+id/roomToolbarAvatarImageView"
54
54
app : layout_constraintTop_toTopOf =" @+id/roomToolbarTitleView" />
55
55
56
-
57
56
<im .vector.app.core.ui.views.PresenceStateImageView
58
57
android : id =" @+id/roomToolbarPresenceImageView"
59
58
android : layout_width =" 12dp"
68
67
tools : src =" @drawable/ic_presence_offline"
69
68
tools : visibility =" visible" />
70
69
70
+ <ImageView
71
+ android : id =" @+id/roomToolbarPublicImageView"
72
+ android : layout_width =" 13dp"
73
+ android : layout_height =" 13dp"
74
+ android : background =" @drawable/background_circle"
75
+ android : contentDescription =" @string/a11y_public_room"
76
+ android : padding =" 1dp"
77
+ android : src =" @drawable/ic_public_room"
78
+ android : visibility =" gone"
79
+ app : layout_constraintCircle =" @+id/roomToolbarAvatarImageView"
80
+ app : layout_constraintCircleAngle =" 135"
81
+ app : layout_constraintCircleRadius =" 20dp"
82
+ tools : ignore =" MissingConstraints"
83
+ tools : visibility =" visible" />
84
+
71
85
<TextView
72
86
android : id =" @+id/roomToolbarTitleView"
73
87
style =" @style/Widget.Vector.TextView.HeadlineMedium"
Original file line number Diff line number Diff line change 35
35
tools : src =" @drawable/ic_presence_offline"
36
36
tools : visibility =" visible" />
37
37
38
+ <ImageView
39
+ android : id =" @+id/roomProfilePublicImageView"
40
+ android : layout_width =" 28dp"
41
+ android : layout_height =" 28dp"
42
+ android : background =" @drawable/background_circle"
43
+ android : contentDescription =" @string/a11y_public_room"
44
+ android : padding =" 2dp"
45
+ android : src =" @drawable/ic_public_room"
46
+ android : visibility =" gone"
47
+ app : layout_constraintCircle =" @+id/roomProfileAvatarView"
48
+ app : layout_constraintCircleAngle =" 135"
49
+ app : layout_constraintCircleRadius =" 64dp"
50
+ tools : ignore =" MissingConstraints"
51
+ tools : visibility =" visible" />
52
+
38
53
<im .vector.app.core.ui.views.ShieldImageView
39
54
android : id =" @+id/roomProfileDecorationImageView"
40
55
android : layout_width =" 30dp"
You can’t perform that action at this time.
0 commit comments