From e5773203010f88fa2c05297d0d1cfd51d9448e91 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 26 Jul 2022 17:47:49 +0200 Subject: [PATCH] Change name of fun. --- vector/src/fdroid/java/im/vector/app/nightly/NightlyProxy.kt | 2 +- vector/src/gplay/java/im/vector/app/nightly/NightlyProxy.kt | 2 +- .../src/main/java/im/vector/app/features/home/HomeActivity.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 0b871c7eaf..eecf3a24f2 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 mayDisplayFirebasePopup() = Unit + fun onHomeResumed() = 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 adef016106..7c6685f5ce 100644 --- a/vector/src/gplay/java/im/vector/app/nightly/NightlyProxy.kt +++ b/vector/src/gplay/java/im/vector/app/nightly/NightlyProxy.kt @@ -31,7 +31,7 @@ class NightlyProxy @Inject constructor( @DefaultPreferences private val sharedPreferences: SharedPreferences, ) { - fun mayDisplayFirebasePopup() { + fun onHomeResumed() { 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 67fe6897a4..bfce33a5e9 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.mayDisplayFirebasePopup() + nightlyProxy.onHomeResumed() } override fun getMenuRes() = R.menu.home