mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
Prevent Alerts to be displayed in the automatically displayed analytics opt-in screen (#4933)
This commit is contained in:
parent
668fa0d859
commit
4cdf55e7dd
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.R
|
||||||
import im.vector.app.core.platform.VectorBaseActivity
|
import im.vector.app.core.platform.VectorBaseActivity
|
||||||
import im.vector.app.core.utils.isAnimationDisabled
|
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.pin.PinActivity
|
||||||
import im.vector.app.features.signout.hard.SignedOutActivity
|
import im.vector.app.features.signout.hard.SignedOutActivity
|
||||||
import im.vector.app.features.themes.ThemeUtils
|
import im.vector.app.features.themes.ThemeUtils
|
||||||
|
@ -300,6 +301,7 @@ class PopupAlertManager @Inject constructor() {
|
||||||
return alert != null &&
|
return alert != null &&
|
||||||
activity !is PinActivity &&
|
activity !is PinActivity &&
|
||||||
activity !is SignedOutActivity &&
|
activity !is SignedOutActivity &&
|
||||||
|
activity !is AnalyticsOptInActivity &&
|
||||||
activity is VectorBaseActivity<*> &&
|
activity is VectorBaseActivity<*> &&
|
||||||
alert.shouldBeDisplayedIn.invoke(activity)
|
alert.shouldBeDisplayedIn.invoke(activity)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue