Code example for DialogFragment

Methods: 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();
    }