コード例 #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());
  }
コード例 #2
0
 @Override
 public boolean isChecked() {
   return child.isChecked();
 }