Decided to turn on check, so the new code only works if the tabLayout is not visible.

This commit is contained in:
PhotonQyv 2017-08-19 19:28:25 +01:00
parent 2dd0a6f34d
commit e59a7dc4e5
1 changed files with 2 additions and 3 deletions

View File

@ -243,8 +243,7 @@ public class MainActivity extends AppCompatActivity
toolbarTitle.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Not sure whether to only do something if the tabLayout is hidden.
//if (tabLayout.getVisibility() == View.GONE) {
if (tabLayout.getVisibility() == View.GONE) {
int pos = tabLayout.getSelectedTabPosition();
@ -265,7 +264,7 @@ public class MainActivity extends AppCompatActivity
break;
}
}
//}
}
});
toolbar_search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {