mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 19:04:54 +01:00
Simplify thread timeline toolbar menu more
This commit is contained in:
parent
bc9a785a59
commit
b1c4ca7816
@ -706,7 +706,9 @@ class TimelineViewModel @AssistedInject constructor(
|
||||
|
||||
if (initialState.isThreadTimeline()) {
|
||||
when (itemId) {
|
||||
R.id.menu_thread_timeline_more -> true
|
||||
R.id.menu_thread_timeline_view_in_room,
|
||||
R.id.menu_thread_timeline_copy_link,
|
||||
R.id.menu_thread_timeline_share -> true
|
||||
else -> false
|
||||
}
|
||||
} else {
|
||||
|
@ -65,36 +65,25 @@
|
||||
app:showAsAction="never"
|
||||
tools:visible="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_thread_timeline_more"
|
||||
android:icon="@drawable/ic_more_vertical"
|
||||
android:title="@string/action_thread_view_in_room"
|
||||
app:iconTint="?vctr_content_secondary"
|
||||
app:showAsAction="always">
|
||||
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_thread_timeline_view_in_room"
|
||||
android:icon="@drawable/ic_thread_view_in_room_menu_item"
|
||||
android:title="@string/action_thread_view_in_room"
|
||||
app:iconTint="?vctr_content_secondary"
|
||||
app:showAsAction="ifRoom" />
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_thread_timeline_copy_link"
|
||||
android:icon="@drawable/ic_thread_link_menu_item"
|
||||
android:title="@string/action_thread_copy_link_to_thread"
|
||||
app:iconTint="?vctr_content_secondary"
|
||||
app:showAsAction="ifRoom" />
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_thread_timeline_share"
|
||||
android:icon="@drawable/ic_thread_share_menu_item"
|
||||
android:title="@string/action_share"
|
||||
app:iconTint="?vctr_content_secondary"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
Loading…
x
Reference in New Issue
Block a user