mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
Ensure menu data is loaded before calling setHasOptionsMenu()
This commit is contained in:
parent
975c870883
commit
f4aa2a7df7
2 changed files with 3 additions and 2 deletions
|
@ -40,12 +40,13 @@ public class BookmarksListFragment extends ListFragment implements LoaderCallbac
|
|||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setHasOptionsMenu(true);
|
||||
|
||||
adapter = new EventsAdapter(getActivity());
|
||||
setListAdapter(adapter);
|
||||
|
||||
upcomingOnly = getActivity().getPreferences(Context.MODE_PRIVATE).getBoolean(PREF_UPCOMING_ONLY, false);
|
||||
|
||||
setHasOptionsMenu(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -42,10 +42,10 @@ public class PersonInfoListFragment extends ListFragment implements LoaderCallba
|
|||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setHasOptionsMenu(true);
|
||||
|
||||
adapter = new EventsAdapter(getActivity());
|
||||
person = getArguments().getParcelable(ARG_PERSON);
|
||||
setHasOptionsMenu(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue