Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. companion object {
  2. private const val REQUEST_CODE_FLEXI_UPDATE = 17362
  3. }
  4.  
  5. override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
  6. super.onActivityResult(requestCode, resultCode, data)
  7. if (requestCode == REQUEST_CODE_FLEXI_UPDATE) {
  8. when (resultCode) {
  9. Activity.RESULT_OK -> { // handle user's approval }
  10. Activity.RESULT_CANCELED -> { // handle user's rejection }
  11. ActivityResult.RESULT_IN_APP_UPDATE_FAILED -> { // handle update failure }
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement