From 72f40b9a441cabd7d1baf448a63af3ce7f05b6af Mon Sep 17 00:00:00 2001 From: Uriel Date: Mon, 17 Aug 2020 21:07:26 -0500 Subject: [PATCH] fix the disappearance of the search icon In SharedMediaLayout when you are searching for somthing and sroll to a mediapage than doesn't support search but you regret and go back the search icon is gone in a mediaPage than do support searching, this behavor is OK in MediaActivity --- .../java/org/telegram/ui/Components/SharedMediaLayout.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/SharedMediaLayout.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/SharedMediaLayout.java index cdfb5a345..e80c366f4 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/SharedMediaLayout.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/SharedMediaLayout.java @@ -2714,9 +2714,6 @@ public class SharedMediaLayout extends FrameLayout implements NotificationCenter if (searchItemState == 2 && actionBar.isSearchFieldVisible()) { ignoreSearchCollapse = true; actionBar.closeSearchField(); - searchItemState = 0; - searchItem.setAlpha(0.0f); - searchItem.setVisibility(View.INVISIBLE); } }