Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. private fun handleOnSignInButtonPressed(ui: AnkoContext<SignInActivity>, username: String, password: String) {
  2.  
  3. if (username.isBlank() || password.isBlank()) {
  4. with(ui) {
  5. alert(title = R.string.sigIn_alert_invalid_user_title,
  6. message = R.string.sigIn_alert_invalid_user_message) {
  7.  
  8. positiveButton(R.string.dialog_button_close) {}
  9. }.show()
  10. }
  11. } else {
  12. // TODO
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement