Code example for DialogFragment

Methods: onDetach

0
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
        onPrepareOptionsMenu(new MenuWrapper(menu));