Fix the appdistro test app check for update button
@@ -122,14 +122,16 @@ class MainActivity : AppCompatActivity() {
executorService.execute {
firebaseAppDistribution
.checkForNewRelease()
- .addOnSuccessListener { release = it }
- .addOnFailureListener { failureListener(it) }
- }
+ .addOnSuccessListener {
+ release = it
setupUI(
isSignedIn = firebaseAppDistribution.isTesterSignedIn,
isUpdateAvailable = release != null,
release = release)
}
+ .addOnFailureListener { failureListener(it) }
+ }
+ }
signOutButton.setOnClickListener {
firebaseAppDistribution.signOutTester()
