This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/resources/patches/betterdmheader/1218.patch

71 lines
5.1 KiB
Diff
Raw Normal View History

2020-08-01 11:48:14 +00:00
diff --color -crB com.discord-base/res/menu/menu_chat_toolbar.xml com.discord/res/menu/menu_chat_toolbar.xml
*** com.discord-base/res/menu/menu_chat_toolbar.xml 2020-08-01 14:44:24.301080117 +0300
--- com.discord/res/menu/menu_chat_toolbar.xml 2020-08-01 14:46:54.622063077 +0300
***************
*** 1,11 ****
<?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">
! <item android:icon="?theme_group_start_call_icon" android:id="@id/menu_chat_start_call" android:visible="false" android:title="@string/start_call" app:showAsAction="ifRoom" />
<item android:icon="@drawable/ic_call_end_red_24dp" android:id="@id/menu_chat_stop_call" android:visible="false" android:title="@string/leave_call" app:showAsAction="ifRoom" />
<item android:icon="?theme_friends_new_group_icon" android:id="@id/menu_chat_start_group" android:visible="false" android:title="@string/create_group_dm" app:showAsAction="ifRoom" />
<item android:icon="?theme_friends_add_icon" android:id="@id/menu_chat_add_friend" android:visible="false" android:title="@string/add_friend" app:showAsAction="always" />
! <item android:icon="?theme_group_start_video_icon" android:id="@id/menu_chat_start_video_call" android:visible="false" android:title="@string/start_video_call" app:showAsAction="ifRoom" />
! <item android:icon="?theme_search_menu_icon" android:id="@id/menu_chat_search" android:visible="false" android:title="@string/search" app:showAsAction="ifRoom" />
<item android:icon="?theme_chat_header_members" android:id="@id/menu_chat_side_panel" android:visible="false" android:title="@string/members" app:showAsAction="always" />
</menu>
\ No newline at end of file
--- 1,11 ----
<?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">
! <item android:icon="?theme_group_start_call_icon" android:id="@id/menu_chat_start_call" android:visible="false" android:title="@string/start_call" app:showAsAction="never" />
<item android:icon="@drawable/ic_call_end_red_24dp" android:id="@id/menu_chat_stop_call" android:visible="false" android:title="@string/leave_call" app:showAsAction="ifRoom" />
<item android:icon="?theme_friends_new_group_icon" android:id="@id/menu_chat_start_group" android:visible="false" android:title="@string/create_group_dm" app:showAsAction="ifRoom" />
<item android:icon="?theme_friends_add_icon" android:id="@id/menu_chat_add_friend" android:visible="false" android:title="@string/add_friend" app:showAsAction="always" />
! <item android:icon="?theme_group_start_video_icon" android:id="@id/menu_chat_start_video_call" android:visible="false" android:title="@string/start_video_call" app:showAsAction="never" />
! <item android:icon="?theme_search_menu_icon" android:id="@id/menu_chat_search" android:visible="false" android:title="@string/search" app:showAsAction="always" />
<item android:icon="?theme_chat_header_members" android:id="@id/menu_chat_side_panel" android:visible="false" android:title="@string/members" app:showAsAction="always" />
</menu>
\ No newline at end of file
Only in com.discord/res/menu: menu_chat_toolbar.xml.orig
Only in com.discord/res/menu: menu_chat_toolbar.xml.rej
diff --color -crB com.discord-base/smali/com/discord/widgets/home/WidgetHomeHeaderManager$getOnConfigureAction$1.smali com.discord/smali/com/discord/widgets/home/WidgetHomeHeaderManager$getOnConfigureAction$1.smali
*** com.discord-base/smali/com/discord/widgets/home/WidgetHomeHeaderManager$getOnConfigureAction$1.smali 2020-08-01 14:44:26.924430605 +0300
--- com.discord/smali/com/discord/widgets/home/WidgetHomeHeaderManager$getOnConfigureAction$1.smali 2020-08-01 14:46:12.795122898 +0300
***************
*** 119,125 ****
invoke-static {v3, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
! invoke-interface {v3, v1}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
.line 5
invoke-interface {p1, v7}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
--- 119,125 ----
invoke-static {v3, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
! invoke-interface {v3, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
.line 5
invoke-interface {p1, v7}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
***************
*** 140,146 ****
invoke-static {v3, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
! invoke-interface {v3, v1}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
.line 7
invoke-interface {p1, v7}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
--- 140,146 ----
invoke-static {v3, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
! invoke-interface {v3, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
.line 7
invoke-interface {p1, v7}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;