Code example for DialogFragment

Methods: getDialoggetShowsDialog

0
        } 
 
        @Override 
        public void onPageFinished(WebView view, String url) {
            super.onPageFinished(view, url);
            if (getShowsDialog() && getDialog() != null && view != null)
                getDialog().setTitle(view.getTitle());
            else if (mTitle != null && view != null)
                mTitle.setText(view.getTitle());
            view.setEnabled(true);
        } 
    } 
 
    @Override 
    public void onClick(View v) {
        switch (v.getId()) {
            case android.R.id.button1:
                if (!getShowsDialog() && getActivity() instanceof OpenExplorer)
                    ((OpenExplorer)getActivity()).findViewById(R.id.frag_log).setVisibility(
                            View.GONE);
Contextual code suggestions in your IDE  Get Codota for Java