Skip to content

Commit

Permalink
hide home FAB whilst searching
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Jan 14, 2022
1 parent 701ef4a commit c74c584
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ private void setUpSearchView() {
chipGroup.clearCheck();

if (searchIV.getTag() == null) {

homeFAB.setVisibility(View.GONE);
setVisibility(View.GONE);

searchIV.setTag(true);
searchIV.setImageDrawable(
ContextCompat.getDrawable(this, R.drawable.ic_close));
Expand All @@ -312,6 +316,9 @@ private void setUpSearchView() {

searchTIL.setVisibility(View.GONE);
chipGroupScrollView.setVisibility(View.VISIBLE);

homeFAB.setVisibility(View.VISIBLE);
if (null != homeFAB.getTag()) setVisibility(View.VISIBLE);
}
});

Expand Down

0 comments on commit c74c584

Please sign in to comment.