SHARE
TWEET

Untitled

a guest Jun 16th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top