-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes Missing Call Icons when threads are enabled #5847
Conversation
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.
Thanks for the quick PR. 2 small remarks
<item | ||
android:id="@+id/menu_timeline_thread_list" | ||
android:title="@string/action_view_threads" | ||
android:visible="false" | ||
app:actionLayout="@layout/view_thread_notification_badge" | ||
app:iconTint="?colorPrimary" | ||
app:showAsAction="always" | ||
tools:visible="true" /> | ||
tools:visible="true" | ||
tools:ignore="AlwaysShowAction" /> |
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.
Strangely adding this attribute in this item
XML tag also has an effect on the warnings of the other item
tags 🤔 .
Anyway for clarity, you should probably move this tools:ignore
to the root XML tag menu
.
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" |
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.
Maybe take the opportunity to use action_voice_call
instead of call
for parity. action_voice_call
has the value "Voice call". This string can still be visible by the user when long pressing on the menu item.
Type of change
Content
Fixes missing call menu items due to
ifRoom
being used instead ofalways
Motivation and context
Closes #5840
I also added lint suprression and comments explaining why we keep these icons as
app:showAsAction="always"
as it can be very easy to overlook with the IDE warningsScreenshots / GIFs
Tests
Tested devices
Checklist