This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class MainViewState( | |
val error: Throwable? = null | |
val loading: Boolean = false, | |
val teamAScore: Int = 0, | |
val teamBScore: Int = 0) |
OlderNewer