Fix 'show all' button for POI additionals in context menu
This commit is contained in:
parent
07c5c90ba2
commit
496df9ee6d
1 changed files with 2 additions and 2 deletions
|
@ -659,7 +659,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
|||
}
|
||||
});
|
||||
buttons.add(button);
|
||||
if (buttons.size() > 3) {
|
||||
if (buttons.size() > 3 && categoryTypes.size() > 4) {
|
||||
button.setVisibility(View.GONE);
|
||||
}
|
||||
view.addView(button);
|
||||
|
@ -672,7 +672,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
|||
view.addView(button);
|
||||
}
|
||||
|
||||
if (categoryTypes.size() > 3) {
|
||||
if (categoryTypes.size() > 4) {
|
||||
final TextViewEx button = buildButtonInCollapsableView(context, false, true);
|
||||
button.setText(context.getString(R.string.shared_string_show_all));
|
||||
button.setOnClickListener(new View.OnClickListener() {
|
||||
|
|
Loading…
Reference in a new issue