Code example for DialogFragment

Methods: getTargetFragment, onCancel

0
         return var1;
      } 
   } 
 
   public void onCancel(DialogInterface var1) {
      super.onCancel(var1);
      if(this.getTargetFragment() instanceof DownloadSizeDialogFragment.DownloadSizeDialogListener) {
         ((DownloadSizeDialogFragment.DownloadSizeDialogListener)this.getTargetFragment()).onDownloadCancel();
      } else { 
         Object[] var2 = new Object[0];
         FinskyLog.wtf("Target fragment does not implement DownloadSizeDialogListener.", var2);
      } 
   } 
 
   public Dialog onCreateDialog(Bundle var1) {
      FragmentActivity var2 = this.getActivity();
      Builder var3 = (new Builder(var2)).setTitle(2131231042).setMessage(2131231043);
      DownloadSizeDialogFragment.2 var4 = new DownloadSizeDialogFragment.2(); 
      Builder var5 = var3.setPositiveButton(2131231030, var4);
      DownloadSizeDialogFragment.1 var6 = new DownloadSizeDialogFragment.1(); 
      return var5.setNegativeButton(2131230813, var6).create();