Decided to turn on check, so the new code only works if the tabLayout is not visible.
This commit is contained in:
parent
2dd0a6f34d
commit
e59a7dc4e5
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue