mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-22 23:58:47 +01:00
Rename fun
This commit is contained in:
parent
1e8a8d4da0
commit
c6b9dba041
@ -19,5 +19,5 @@ package im.vector.app.nightly
|
||||
import javax.inject.Inject
|
||||
|
||||
class NightlyProxy @Inject constructor() {
|
||||
fun updateIfNewReleaseAvailable() = Unit
|
||||
fun mayDisplayFirebasePopup() = Unit
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -537,7 +537,7 @@ class HomeActivity :
|
||||
serverBackupStatusViewModel.refreshRemoteStateIfNeeded()
|
||||
|
||||
// Check nightly
|
||||
nightlyProxy.updateIfNewReleaseAvailable()
|
||||
nightlyProxy.mayDisplayFirebasePopup()
|
||||
}
|
||||
|
||||
override fun getMenuRes() = R.menu.home
|
||||
|
Loading…
Reference in New Issue
Block a user