Created
May 31, 2020 04:12
-
-
Save chelseatroy/de84781cc2ac63313f58d44f8e424685 to your computer and use it in GitHub Desktop.
Call the API
This file contains hidden or 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
class LoginActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
... | |
signInButton.setOnClickListener { view -> | |
if (isNetworkConnected()) { | |
authenticate() //REPLACE CALL TO startActivity() WITH THIS LINE | |
} else { | |
... | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment