Created
October 31, 2016 17:18
-
-
Save Dima564/ef38cb2988066db865e2803052a56a0c to your computer and use it in GitHub Desktop.
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
selector(items = listOf("Like", "Dislike") { | |
when (it) { | |
0 -> if (!liked) likePost() | |
else -> if (!disLiked) disLikePost() | |
} | |
} | |
doAsync { | |
// Long background task | |
uiThread { | |
alert(R.string.could_not_log_in) { | |
yesButton { dismiss() } | |
cancellable = false | |
}.show() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment