diff --git a/vector/src/fdroid/java/im/vector/app/nightly/NightlyProxy.kt b/vector/src/fdroid/java/im/vector/app/nightly/NightlyProxy.kt index 40375e5760..0b871c7eaf 100644 --- a/vector/src/fdroid/java/im/vector/app/nightly/NightlyProxy.kt +++ b/vector/src/fdroid/java/im/vector/app/nightly/NightlyProxy.kt @@ -19,5 +19,5 @@ package im.vector.app.nightly import javax.inject.Inject class NightlyProxy @Inject constructor() { - fun updateIfNewReleaseAvailable() = Unit + fun mayDisplayFirebasePopup() = Unit } diff --git a/vector/src/gplay/java/im/vector/app/nightly/NightlyProxy.kt b/vector/src/gplay/java/im/vector/app/nightly/NightlyProxy.kt index dd543318ab..a16b1fb6dc 100644 --- a/vector/src/gplay/java/im/vector/app/nightly/NightlyProxy.kt +++ b/vector/src/gplay/java/im/vector/app/nightly/NightlyProxy.kt @@ -29,7 +29,7 @@ class NightlyProxy @Inject constructor( private val clock: Clock, private val context: Context, ) { - fun updateIfNewReleaseAvailable() { + fun mayDisplayFirebasePopup() { if (!canDisplayPopup()) return val firebaseAppDistribution = FirebaseAppDistribution.getInstance() firebaseAppDistribution.updateIfNewReleaseAvailable() diff --git a/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt b/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt index f1848e653f..67fe6897a4 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt @@ -537,7 +537,7 @@ class HomeActivity : serverBackupStatusViewModel.refreshRemoteStateIfNeeded() // Check nightly - nightlyProxy.updateIfNewReleaseAvailable() + nightlyProxy.mayDisplayFirebasePopup() } override fun getMenuRes() = R.menu.home