For #10253: Add disableFirstTimePWAPopup for performance testing (#10442)

fennec/production
Simon Chae 4 years ago committed by GitHub
parent 1e83f54a94
commit 5ba9cc6ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,6 +30,7 @@ object Performance {
disableOnboarding(context)
disableTrackingProtectionPopups(context)
disableFirstTimePWAPopup(context)
}
/**
@ -68,4 +69,11 @@ object Performance {
private fun disableTrackingProtectionPopups(context: Context) {
Settings.getInstance(context).isOverrideTPPopupsForPerformanceTest = true
}
/**
* Disables the first time PWA popup.
*/
private fun disableFirstTimePWAPopup(context: Context) {
Settings.getInstance(context).shouldShowFirstTimePwaFragment = false
}
}

Loading…
Cancel
Save