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
This commit is contained in:
Uriel 2020-08-17 21:07:26 -05:00
parent 4c5f32babf
commit 72f40b9a44

View file

@ -2714,9 +2714,6 @@ public class SharedMediaLayout extends FrameLayout implements NotificationCenter
if (searchItemState == 2 && actionBar.isSearchFieldVisible()) { if (searchItemState == 2 && actionBar.isSearchFieldVisible()) {
ignoreSearchCollapse = true; ignoreSearchCollapse = true;
actionBar.closeSearchField(); actionBar.closeSearchField();
searchItemState = 0;
searchItem.setAlpha(0.0f);
searchItem.setVisibility(View.INVISIBLE);
} }
} }