mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Rename fun
This commit is contained in:
parent
1e8a8d4da0
commit
c6b9dba041
3 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue