Merge pull request #5847 from vector-im/bugfix/eric/missing-call-icons

Fixes Missing Call Icons when threads are enabled
This commit is contained in:
Benoit Marty 2022-04-26 22:30:07 +02:00 committed by GitHub
commit 521fd1fcd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

1
changelog.d/5847.bugfix Normal file
View file

@ -0,0 +1 @@
Fixes missing call icons when threads are enabled

View file

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="AlwaysShowAction">
<item
android:id="@+id/timeline_setting"
@ -19,24 +20,27 @@
android:title="@string/action_invite"
app:showAsAction="never" />
<!-- We always want to show this item as an icon -->
<item
android:id="@+id/video_call"
android:icon="@drawable/ic_video"
android:title="@string/action_video_call"
android:visible="false"
app:iconTint="?colorPrimary"
app:showAsAction="ifRoom"
app:showAsAction="always"
tools:visible="true" />
<!-- We always want to show this item as an icon -->
<item
android:id="@+id/voice_call"
android:icon="@drawable/ic_phone"
android:title="@string/call"
android:title="@string/action_voice_call"
android:visible="false"
app:iconTint="?colorPrimary"
app:showAsAction="ifRoom"
app:showAsAction="always"
tools:visible="true" />
<!-- We always want to show this item as an icon -->
<item
android:id="@+id/menu_timeline_thread_list"
android:title="@string/action_view_threads"
@ -86,4 +90,4 @@
android:title="@string/action_share"
app:iconTint="?vctr_content_secondary"
app:showAsAction="withText" />
</menu>
</menu>