Code example for DialogFragment

Methods: getDialogonDestroyView, getRetainInstance, getView

0
	} 
 
	@Override 
	public void onDestroyView() 
	{ 
		if (getDialog() != null && getRetainInstance())
			getDialog().setDismissMessage(null);
		super.onDestroyView(); 
		((ViewGroup)getView()).removeView(root);
	} 
 
	@SuppressLint("SetJavaScriptEnabled") 
	private void initWebView(WebView view, View loadingLayout, Bundle savedInstanceState)
	{ 
		view.getSettings().setJavaScriptEnabled(true);
		view.setWebViewClient(new LoginWebClient(loadingLayout, this, (OnLoginResponseListener) getActivity()));
 
		if (savedInstanceState == null)
			view.loadUrl(InstagramConstants.getOauthURL());
		else