Fix search bar background sometimes not showing

This commit is contained in:
Suphon Thanakornpakapong committed 2021-10-09 19:30:07 +07:00
1 parent 5431225595
commit bd56b5ddf3
1 file changed
+1 -1
@@ -806,7 +806,7 @@ public class AllAppsContainerView extends AllAppsStretchLayout implements DragSo
getSearchView().setBackgroundColor(viewBG);
getFloatingHeaderView().setHeaderColor(viewBG);
invalidateHeader();
if (scrolledOffset == 0 && mSearchUiManager.getEditText() != null) {
if (mHeaderColor == mScrimColor && mSearchUiManager.getEditText() != null) {
mSearchUiManager.getEditText().show();
}
}