From: gu.martinm@gmail.com Date: Wed, 24 Sep 2014 01:17:34 +0000 (+0200) Subject: WeatherInformation: current specific setHasNoOptions X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=c2ca49d7eae1b90a5accafd232d56579f1b0b80b;p=JavaForFun WeatherInformation: current specific setHasNoOptions --- diff --git a/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java index 7c4dbc3..68444c2 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java +++ b/Android/WeatherInformation/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/Android/WeatherInformation/src/de/example/exampletdd/fragment/specific/SpecificFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/specific/SpecificFragment.java index 27b4ad7..dbe55e9 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/specific/SpecificFragment.java +++ b/Android/WeatherInformation/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