From: gu.martinm@gmail.com Date: Wed, 24 Sep 2014 01:17:34 +0000 (+0200) Subject: WeatherInformation: current specific setHasNoOptions X-Git-Tag: weatherinformation-1.0~122 X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=7bb0e7397fb540362bb90d35da800f3fd3751dd6;p=AndroidWeatherInformation WeatherInformation: current specific setHasNoOptions --- 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