From 2e54e52e9cdcbc95a6e747f346fa43b5d4ebcdf6 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 17 May 2020 18:41:33 +0300 Subject: [PATCH] nocamerabutton: fix a rare case where image button can be hidden --- patches/nocamerabutton/1144.patch | 43 ++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/patches/nocamerabutton/1144.patch b/patches/nocamerabutton/1144.patch index 4ff51e39e8..7ae17f515f 100644 --- a/patches/nocamerabutton/1144.patch +++ b/patches/nocamerabutton/1144.patch @@ -1,8 +1,9 @@ -Only in com.discord-1144: build -Only in com.discord-1144: dist +Binary files com.discord-1144-base/build/apk/classes2.dex and com.discord-1144/build/apk/classes2.dex differ +Binary files com.discord-1144-base/build/apk/res/layout/flex_input_widget.xml and com.discord-1144/build/apk/res/layout/flex_input_widget.xml differ +Binary files com.discord-1144-base/dist/com.discord-1144.apk and com.discord-1144/dist/com.discord-1144.apk differ diff -crB com.discord-1144-base/res/layout/flex_input_widget.xml com.discord-1144/res/layout/flex_input_widget.xml *** com.discord-1144-base/res/layout/flex_input_widget.xml 2020-05-17 16:38:23.695244181 +0300 ---- com.discord-1144/res/layout/flex_input_widget.xml 2020-05-17 17:01:51.533974516 +0300 +--- com.discord-1144/res/layout/flex_input_widget.xml 2020-05-17 18:35:31.125235116 +0300 *************** *** 8,14 **** @@ -34,7 +35,24 @@ diff -crB com.discord-1144-base/res/layout/flex_input_widget.xml com.discord-114 ! diff -crB com.discord-1144-base/smali_classes2/com/lytefast/flexinput/fragment/FlexInputFragment.smali com.discord-1144/smali_classes2/com/lytefast/flexinput/fragment/FlexInputFragment.smali *** com.discord-1144-base/smali_classes2/com/lytefast/flexinput/fragment/FlexInputFragment.smali 2020-05-17 16:38:28.831942620 +0300 ---- com.discord-1144/smali_classes2/com/lytefast/flexinput/fragment/FlexInputFragment.smali 2020-05-17 18:34:07.081308249 +0300 +--- com.discord-1144/smali_classes2/com/lytefast/flexinput/fragment/FlexInputFragment.smali 2020-05-17 18:39:05.170080075 +0300 +*************** +*** 793,799 **** + + if-nez v4, :cond_4 + +! const/4 v10, 0x0 + + goto :goto_1 + +--- 793,799 ---- + + if-nez v4, :cond_4 + +! const/16 v10, 0x8 + + goto :goto_1 + *************** *** 810,816 **** @@ -52,4 +70,21 @@ diff -crB com.discord-1144-base/smali_classes2/com/lytefast/flexinput/fragment/F goto :goto_2 +*************** +*** 832,838 **** + goto :goto_3 + + :cond_6 +! const/16 v4, 0x8 + + :goto_3 + invoke-virtual {v5, v4}, Landroid/view/View;->setVisibility(I)V +--- 832,838 ---- + goto :goto_3 + + :cond_6 +! const/16 v4, 0x0 + + :goto_3 + invoke-virtual {v5, v4}, Landroid/view/View;->setVisibility(I)V