Skip to content

Instantly share code, notes, and snippets.

View arranlomas's full-sized avatar

Arran Lomas arranlomas

View GitHub Profile
private void showTask(Task task) {
// The view may not be able to handle UI updates anymore
if (mAddTaskView.isActive()) {
mAddTaskView.setTitle(task.getTitle());
mAddTaskView.setDescription(task.getDescription());
}
mIsDataMissing = false;
}
data class MainViewState(
val error: Throwable? = null
val loading: Boolean = false,
val teamAScore: Int = 0,
val teamBScore: Int = 0)