Skip to content

Instantly share code, notes, and snippets.

@DanishAmjad12
Created April 5, 2020 17:05
Show Gist options
  • Save DanishAmjad12/7185c05600311089f7b62f7d402fd631 to your computer and use it in GitHub Desktop.
Save DanishAmjad12/7185c05600311089f7b62f7d402fd631 to your computer and use it in GitHub Desktop.
private val listener: InstallStateUpdatedListener? = InstallStateUpdatedListener { installState ->
if (installState.installStatus() == InstallStatus.DOWNLOADED) {
// After the update is downloaded, show a notification
// and request user confirmation to restart the app.
Log.d(TAG, "An update has been downloaded")
showSnackBarForCompleteUpdate()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment