WeatherInformation: current specific setHasNoOptions
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Wed, 24 Sep 2014 01:17:34 +0000 (03:17 +0200)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Wed, 24 Sep 2014 01:17:34 +0000 (03:17 +0200)
src/de/example/exampletdd/fragment/current/CurrentFragment.java
src/de/example/exampletdd/fragment/specific/SpecificFragment.java

index 7c4dbc3..68444c2 100644 (file)
@@ -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);
index 27b4ad7..dbe55e9 100644 (file)
@@ -68,6 +68,8 @@ public class SpecificFragment extends Fragment {
 
             this.mChosenDay = savedInstanceState.getInt("mChosenDay");
         }
+
+        this.setHasOptionsMenu(false);
     }
 
     @Override