1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2024-12-28 01:11:45 +01:00

added missing hasOptionsMenu

This commit is contained in:
Mariotaku Lee 2015-04-27 21:44:11 +08:00
parent 2437dfe04c
commit 5ed6b66dff
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,6 @@ import android.view.ViewGroup;
import org.mariotaku.twidere.Constants;
import org.mariotaku.twidere.R;
import org.mariotaku.twidere.fragment.support.BaseSupportFragment;
import org.osmdroid.ResourceProxy;
import org.osmdroid.api.IMapController;
import org.osmdroid.api.IMapView;
@ -54,6 +53,7 @@ public class OpenStreetMapViewerFragment extends BaseSupportFragment implements
@Override
public void onActivityCreated(final Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
setHasOptionsMenu(true);
final Bundle args = getArguments();
final double latitude = args.getDouble(EXTRA_LATITUDE, Double.NaN);
final double longitude = args.getDouble(EXTRA_LONGITUDE, Double.NaN);

View File

@ -209,6 +209,7 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On
@Override
public void onActivityCreated(final Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
setHasOptionsMenu(true);
final TwidereApplication application = TwidereApplication.getInstance(getActivity());
mAsyncTaskManager = application.getAsyncTaskManager();
mLazyImageLoader = application.getMediaLoaderWrapper();