Code example for DialogFragment

Methods: getArguments, getFragmentManager

0
  private BroadcastReceiver c;
  private Object d;
 
  private void a() 
  { 
    if (getFragmentManager() != null)
    { 
      SetRecoveryNumberDialog localSetRecoveryNumberDialog = new SetRecoveryNumberDialog();
      Bundle localBundle = new Bundle();
      localBundle.putBoolean("after_pin_setup", getArguments().getBoolean("after_pin_setup", false));
      localSetRecoveryNumberDialog.setArguments(localBundle);
      localSetRecoveryNumberDialog.show(getFragmentManager(), "dialog_recovery_number");
    } 
  } 
 
  public void onActivityCreated(Bundle paramBundle)
  { 
    super.onActivityCreated(paramBundle);
    this.b.a(this.c, new IntentFilter("com.avast.android.generic.app.settings.CLOSE_RECOVERY_DESCRIPTION"));
  }