ProgressState.POSTED) .onErrorReturnItem(ProgressState.FAILED) .startWith(ProgressState.IN_FLIGHT) .subscribe(progressState -> { database.createOrUpdateComment( comment, progressState ); }); } Never make the user wait
ProgressState.POSTED) .onErrorReturnItem(ProgressState.FAILED) .startWith(ProgressState.IN_FLIGHT) .subscribe(progressState -> { database.createOrUpdateComment( comment, progressState ); }); } Never make the user wait
ProgressState.POSTED) .onErrorReturnItem(ProgressState.FAILED) .startWith(ProgressState.IN_FLIGHT) .subscribe(progressState -> { database.createOrUpdateComment( comment, progressState ); }); } Never make the user wait
ProgressState.POSTED) .onErrorReturnItem(ProgressState.FAILED) .startWith(ProgressState.IN_FLIGHT) .subscribe(progressState -> { database.createOrUpdateComment( comment, progressState ); }); } Never make the user wait
ProgressState.POSTED) .onErrorReturnItem(ProgressState.FAILED) .startWith(ProgressState.IN_FLIGHT) .subscribe(progressState -> { database.createOrUpdateComment( comment, progressState ); }); } Never make the user wait
break; case POSTED: statusView.setText("Posted at " + progressEvent.timestamp()); break; case FAILED: statusView.setText("Failed. Tap to retry."); break; } }); Never make the user wait