Code example for DialogFragment

Methods: dismiss, getFragmentManager, isAdded

0
  private BroadcastReceiver c;
  private p d;
 
  private void a() 
  { 
    if ((this.b != null) && (isAdded()))
      this.b.hide();
    this.a = false;
    this.b = null;
  } 
 
  private void a(Context paramContext)
  { 
    a(); 
    if (isAdded())
    { 
      this.b = new ProgressDialog(paramContext);
      this.b.setMessage(getString(z.U));
      this.b.setCancelable(false);
      this.b.show();
    } 
    this.a = true;
  } 
 
  private void a(boolean paramBoolean)
  { 
    a(); 
    RecoveryResultDialog localRecoveryResultDialog = new RecoveryResultDialog();
    Bundle localBundle = new Bundle();
    localBundle.putBoolean("result", paramBoolean);
    localRecoveryResultDialog.setArguments(localBundle);
    localRecoveryResultDialog.show(getFragmentManager(), "recovery_result_dialog");
    dismiss();
  } 
 
  public void onActivityCreated(Bundle paramBundle)
  { 
    super.onActivityCreated(paramBundle);