mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Merge pull request #4948 from vector-im/feature/bma/alerter_analytics_optin
Prevent Alerts to be displayed on the analytics opt-in screen
This commit is contained in:
commit
9232206947
2 changed files with 3 additions and 0 deletions
1
changelog.d/4948.bugfix
Normal file
1
changelog.d/4948.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Prevent Alerts to be displayed in the automatically displayed analytics opt-in screen
|
|
@ -25,6 +25,7 @@ import com.tapadoo.alerter.Alerter
|
|||
import im.vector.app.R
|
||||
import im.vector.app.core.platform.VectorBaseActivity
|
||||
import im.vector.app.core.utils.isAnimationDisabled
|
||||
import im.vector.app.features.analytics.ui.consent.AnalyticsOptInActivity
|
||||
import im.vector.app.features.pin.PinActivity
|
||||
import im.vector.app.features.signout.hard.SignedOutActivity
|
||||
import im.vector.app.features.themes.ThemeUtils
|
||||
|
@ -300,6 +301,7 @@ class PopupAlertManager @Inject constructor() {
|
|||
return alert != null &&
|
||||
activity !is PinActivity &&
|
||||
activity !is SignedOutActivity &&
|
||||
activity !is AnalyticsOptInActivity &&
|
||||
activity is VectorBaseActivity<*> &&
|
||||
alert.shouldBeDisplayedIn.invoke(activity)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue