Code example for DialogFragment

Methods: getActivity, getArguments, onDismiss

0
      var5.setView(var6);
      return var5;
   } 
 
   public void onDismiss(DialogInterface var1) {
      if(this.getActivity() != null && this.getArguments().getBoolean("go_back")) {
         if(this.getActivity() instanceof PageFragmentHost) {
            ((PageFragmentHost)this.getActivity()).goBack();
         } else { 
            Object[] var2 = new Object[0];
            FinskyLog.wtf("Dialog not hosted by PageFragmentHost. Cannot navigate back.", var2);
         } 
      } 
 
      super.onDismiss(var1);
   } 
}