1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-29 19:20:36 +02:00

Hide subpage view when there is only one page

This commit is contained in:
Erik Johansson
2018-02-23 20:50:53 +01:00
parent ea3303d802
commit 49fb2fab4f

View File

@@ -157,6 +157,8 @@ public class TableFragment extends Fragment implements FragmentUpdateListener {
moveSubpageRight.setEnabled(selectedSubpageNr + 1 < subpageCount);
subpageView.addView(moveSubpageRight);
subpageView.setVisibility(subpageCount > 1 ? View.VISIBLE : View.GONE);
tableHeaderView.removeAllViews();
ArrayList<MeasurementView> visibleMeasurements = new ArrayList<>();