From 7bb0e7397fb540362bb90d35da800f3fd3751dd6 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Wed, 24 Sep 2014 03:17:34 +0200 Subject: [PATCH] WeatherInformation: current specific setHasNoOptions --- src/de/example/exampletdd/fragment/current/CurrentFragment.java | 2 ++ src/de/example/exampletdd/fragment/specific/SpecificFragment.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/de/example/exampletdd/fragment/current/CurrentFragment.java b/src/de/example/exampletdd/fragment/current/CurrentFragment.java index 7c4dbc3..68444c2 100644 --- a/src/de/example/exampletdd/fragment/current/CurrentFragment.java +++ b/src/de/example/exampletdd/fragment/current/CurrentFragment.java @@ -80,6 +80,8 @@ public class CurrentFragment extends Fragment { } } + this.setHasOptionsMenu(false); + final ProgressBar progress = (ProgressBar) getActivity().findViewById(R.id.weather_current_progressbar); progress.setVisibility(View.VISIBLE); final TextView errorMessage = (TextView) getActivity().findViewById(R.id.weather_current_error_message); diff --git a/src/de/example/exampletdd/fragment/specific/SpecificFragment.java b/src/de/example/exampletdd/fragment/specific/SpecificFragment.java index 27b4ad7..dbe55e9 100644 --- a/src/de/example/exampletdd/fragment/specific/SpecificFragment.java +++ b/src/de/example/exampletdd/fragment/specific/SpecificFragment.java @@ -68,6 +68,8 @@ public class SpecificFragment extends Fragment { this.mChosenDay = savedInstanceState.getInt("mChosenDay"); } + + this.setHasOptionsMenu(false); } @Override -- 2.1.4