Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HIFILEO/c965856853702c418ff2f8f57c5b8ffe to your computer and use it in GitHub Desktop.
Save HIFILEO/c965856853702c418ff2f8f57c5b8ffe to your computer and use it in GitHub Desktop.
compositeDisposable.add(nowPlayingViewModel.getUiModels()
.subscribe(this::processUiModel,
throwable -> { throw new UnsupportedOperationException("Errors from Model Unsupported: ");}
)
);
private void processUiModel(UiModel uiModel) {
this.latestUiModel = uiModel;
//Update progressBar...
//Update adapter
//Error Messages
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment