mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-29 09:19:01 +03:00
Change name of fun.
This commit is contained in:
parent
41d35e68a0
commit
e577320301
3 changed files with 3 additions and 3 deletions
vector/src
fdroid/java/im/vector/app/nightly
gplay/java/im/vector/app/nightly
main/java/im/vector/app/features/home
|
@ -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 mayDisplayFirebasePopup() = Unit
|
fun onHomeResumed() = Unit
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ class NightlyProxy @Inject constructor(
|
||||||
@DefaultPreferences
|
@DefaultPreferences
|
||||||
private val sharedPreferences: SharedPreferences,
|
private val sharedPreferences: SharedPreferences,
|
||||||
) {
|
) {
|
||||||
fun mayDisplayFirebasePopup() {
|
fun onHomeResumed() {
|
||||||
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.mayDisplayFirebasePopup()
|
nightlyProxy.onHomeResumed()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getMenuRes() = R.menu.home
|
override fun getMenuRes() = R.menu.home
|
||||||
|
|
Loading…
Add table
Reference in a new issue