small muc subject improvements

This commit is contained in:
kosyak 2024-09-01 22:57:59 +02:00
parent e9659f0fa3
commit 4dab5156e1
6 changed files with 23 additions and 2 deletions

View file

@ -3610,7 +3610,7 @@ public class ConversationFragment extends XmppFragment
conversation.refreshSessions(); conversation.refreshSessions();
if (conversation != null && conversation.getMode() == Conversational.MODE_MULTI) { if (conversation != null && conversation.getMode() == Conversational.MODE_MULTI && conversation.getNextCounterpart() == null) {
String subject = conversation.getMucOptions().getSubject(); String subject = conversation.getMucOptions().getSubject();
Boolean hidden = conversation.getMucOptions().subjectHidden(); Boolean hidden = conversation.getMucOptions().subjectHidden();

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#000000"
android:pathData="M160,760L160,680L560,680L560,760L160,760ZM160,600L160,520L800,520L800,600L160,600ZM160,440L160,360L800,360L800,440L160,440ZM160,280L160,200L800,200L800,280L160,280Z"/>
</vector>

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#ffffff"
android:pathData="M160,760L160,680L560,680L560,760L160,760ZM160,600L160,520L800,520L800,600L160,600ZM160,440L160,360L800,360L800,440L160,440ZM160,280L160,200L800,200L800,280L160,280Z"/>
</vector>

View file

@ -54,7 +54,7 @@
<ImageView <ImageView
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:src="?attr/ic_pin" android:src="?attr/ic_subject"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
/> />

View file

@ -40,6 +40,7 @@
<attr name="ic_send_voice_offline" format="reference" /> <attr name="ic_send_voice_offline" format="reference" />
<attr name="ic_pin" format="reference" /> <attr name="ic_pin" format="reference" />
<attr name="ic_subject" format="reference" />
<attr name="ic_close" format="reference" /> <attr name="ic_close" format="reference" />
<attr name="ic_attach_camera" format="reference" /> <attr name="ic_attach_camera" format="reference" />
<attr name="ic_attach_videocam" format="reference" /> <attr name="ic_attach_videocam" format="reference" />

View file

@ -59,6 +59,7 @@
<item name="ic_attach_videocam" type="reference">@drawable/ic_attach_videocam</item> <item name="ic_attach_videocam" type="reference">@drawable/ic_attach_videocam</item>
<item name="ic_attach_document" type="reference">@drawable/ic_attach_document</item> <item name="ic_attach_document" type="reference">@drawable/ic_attach_document</item>
<item name="ic_pin" type="reference">@drawable/ic_pin_black</item> <item name="ic_pin" type="reference">@drawable/ic_pin_black</item>
<item name="ic_subject" type="reference">@drawable/ic_subject_black</item>
<item name="ic_close" type="reference">@drawable/ic_close_24dp_black</item> <item name="ic_close" type="reference">@drawable/ic_close_24dp_black</item>
<item name="ic_attach_location" type="reference">@drawable/ic_attach_location</item> <item name="ic_attach_location" type="reference">@drawable/ic_attach_location</item>
<item name="ic_attach_photo" type="reference">@drawable/ic_attach_photo</item> <item name="ic_attach_photo" type="reference">@drawable/ic_attach_photo</item>
@ -239,6 +240,7 @@
<item name="ic_attach_videocam" type="reference">@drawable/ic_attach_videocam_white</item> <item name="ic_attach_videocam" type="reference">@drawable/ic_attach_videocam_white</item>
<item name="ic_attach_document" type="reference">@drawable/ic_attach_document_white</item> <item name="ic_attach_document" type="reference">@drawable/ic_attach_document_white</item>
<item name="ic_pin" type="reference">@drawable/ic_pin_white</item> <item name="ic_pin" type="reference">@drawable/ic_pin_white</item>
<item name="ic_subject" type="reference">@drawable/ic_subject_white</item>
<item name="ic_close" type="reference">@drawable/ic_close_24dp</item> <item name="ic_close" type="reference">@drawable/ic_close_24dp</item>
<item name="ic_attach_location" type="reference">@drawable/ic_attach_location_white</item> <item name="ic_attach_location" type="reference">@drawable/ic_attach_location_white</item>
<item name="ic_attach_photo" type="reference">@drawable/ic_attach_photo_white</item> <item name="ic_attach_photo" type="reference">@drawable/ic_attach_photo_white</item>