Rename fun

This commit is contained in:
Benoit Marty 2022-07-26 11:57:45 +02:00 committed by Benoit Marty
parent 1e8a8d4da0
commit c6b9dba041
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 updateIfNewReleaseAvailable() = Unit
fun mayDisplayFirebasePopup() = Unit
}

View File

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

View File

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