Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SignInActivity : AppCompatActivity() {
- // ...
- fun authorizeUser(username: String, password: String) {
- doAsync {
- // ...
- activityUiThread {
- if (authorized) {
- startActivity<ContainerActivity>()
- } else {
- view.showAccessDeniedAlertDialog()
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment