mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-02 03:40:16 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/10253: Add disableFirstTimePWAPopup for performance testing (https://github.com/mozilla-mobile/fenix/pull/10442)
This commit is contained in:
parent
e6e1a79358
commit
21ae2b8350
@ -30,6 +30,7 @@ object Performance {
|
|||||||
|
|
||||||
disableOnboarding(context)
|
disableOnboarding(context)
|
||||||
disableTrackingProtectionPopups(context)
|
disableTrackingProtectionPopups(context)
|
||||||
|
disableFirstTimePWAPopup(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,4 +69,11 @@ object Performance {
|
|||||||
private fun disableTrackingProtectionPopups(context: Context) {
|
private fun disableTrackingProtectionPopups(context: Context) {
|
||||||
Settings.getInstance(context).isOverrideTPPopupsForPerformanceTest = true
|
Settings.getInstance(context).isOverrideTPPopupsForPerformanceTest = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disables the first time PWA popup.
|
||||||
|
*/
|
||||||
|
private fun disableFirstTimePWAPopup(context: Context) {
|
||||||
|
Settings.getInstance(context).shouldShowFirstTimePwaFragment = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user