Created
April 5, 2020 17:05
-
-
Save DanishAmjad12/7185c05600311089f7b62f7d402fd631 to your computer and use it in GitHub Desktop.
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
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