Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
  2. super.onViewCreated(view, savedInstanceState)
  3. if (BuildConfig.APP_TYPE == AppType.MASTER) {
  4. login_button.setOnClickListener {
  5. QRCodeReaderActivity.launch(context, navigateMessageId = R.string.navigate_message_login)
  6. activity.finish()
  7. }
  8. } else {
  9. login_button.visibility = View.GONE
  10. }
  11. list_button.setOnClickListener {
  12. DeviceListActivity.launch(context)
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement