Пример #1
0
  private void onDeleteClicked() {
    String reason = customReasonText.getText().toString();
    boolean notifyUser = this.notifyUser.isChecked();
    boolean ban = blockUser.isChecked();

    Observable<Void> response = deleteItem(reason, notifyUser, ban);
    response
        .compose(bindToLifecycle())
        .lift(BusyDialogFragment.busyDialog(this))
        .subscribe(event -> dismiss(), defaultOnError());
  }
 @Override
 public boolean isChecked() {
   return child.isChecked();
 }