Change name of fun.

This commit is contained in:
Benoit Marty 2022-07-26 17:47:49 +02:00
parent 41d35e68a0
commit e577320301
3 changed files with 3 additions and 3 deletions

View File

@ -19,5 +19,5 @@ package im.vector.app.nightly
import javax.inject.Inject
class NightlyProxy @Inject constructor() {
fun mayDisplayFirebasePopup() = Unit
fun onHomeResumed() = Unit
}

View File

@ -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()

View File

@ -537,7 +537,7 @@ class HomeActivity :
serverBackupStatusViewModel.refreshRemoteStateIfNeeded()
// Check nightly
nightlyProxy.mayDisplayFirebasePopup()
nightlyProxy.onHomeResumed()
}
override fun getMenuRes() = R.menu.home