Rename fun
This commit is contained in:
parent
1e8a8d4da0
commit
c6b9dba041
@ -19,5 +19,5 @@ package im.vector.app.nightly
|
|||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class NightlyProxy @Inject constructor() {
|
class NightlyProxy @Inject constructor() {
|
||||||
fun updateIfNewReleaseAvailable() = Unit
|
fun mayDisplayFirebasePopup() = Unit
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class NightlyProxy @Inject constructor(
|
|||||||
private val clock: Clock,
|
private val clock: Clock,
|
||||||
private val context: Context,
|
private val context: Context,
|
||||||
) {
|
) {
|
||||||
fun updateIfNewReleaseAvailable() {
|
fun mayDisplayFirebasePopup() {
|
||||||
if (!canDisplayPopup()) return
|
if (!canDisplayPopup()) return
|
||||||
val firebaseAppDistribution = FirebaseAppDistribution.getInstance()
|
val firebaseAppDistribution = FirebaseAppDistribution.getInstance()
|
||||||
firebaseAppDistribution.updateIfNewReleaseAvailable()
|
firebaseAppDistribution.updateIfNewReleaseAvailable()
|
||||||
|
|||||||
@ -537,7 +537,7 @@ class HomeActivity :
|
|||||||
serverBackupStatusViewModel.refreshRemoteStateIfNeeded()
|
serverBackupStatusViewModel.refreshRemoteStateIfNeeded()
|
||||||
|
|
||||||
// Check nightly
|
// Check nightly
|
||||||
nightlyProxy.updateIfNewReleaseAvailable()
|
nightlyProxy.mayDisplayFirebasePopup()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getMenuRes() = R.menu.home
|
override fun getMenuRes() = R.menu.home
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user