hide label too

This commit is contained in:
Milos Kozak 2017-05-04 23:22:16 +02:00
parent bd0ff991dd
commit 05d9f16031
2 changed files with 3 additions and 1 deletions

View file

@ -1002,9 +1002,10 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
boolean showPrediction = showPredictionView.isChecked() && finalLastRun != null && finalLastRun.constraintsProcessed.getClass().equals(DetermineBasalResultAMA.class);
if (MainApp.getSpecificPlugin(OpenAPSAMAPlugin.class) != null && MainApp.getSpecificPlugin(OpenAPSAMAPlugin.class).isEnabled(PluginBase.APS)) {
showPredictionView.setVisibility(View.VISIBLE);
getActivity().findViewById(R.id.overview_showprediction_label).setVisibility(View.VISIBLE);
} else {
showPredictionView.setVisibility(View.GONE);
}
getActivity().findViewById(R.id.overview_showprediction_label).setVisibility(View.GONE); }
// ****** GRAPH *******

View file

@ -304,6 +304,7 @@
android:paddingTop="5dp">
<TextView
android:id="@+id/overview_showprediction_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"