1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00

Fixed crash when creating the options menu on some Android versions:

menu was created before the event was loaded. (Reported by Simon
Debaeke)
This commit is contained in:
Christophe Beyls 2014-01-17 21:45:08 +01:00
parent 5052b355c2
commit e2584ccf52

View file

@ -76,9 +76,9 @@ public class EventDetailsFragment extends Fragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setHasOptionsMenu(true);
event = getArguments().getParcelable(ARG_EVENT);
setHasOptionsMenu(true);
}
public Event getEvent() {