diff --git a/app/src/main/java/org/mozilla/fenix/utils/Settings.kt b/app/src/main/java/org/mozilla/fenix/utils/Settings.kt index f39995e301..131f0e2f65 100644 --- a/app/src/main/java/org/mozilla/fenix/utils/Settings.kt +++ b/app/src/main/java/org/mozilla/fenix/utils/Settings.kt @@ -72,6 +72,8 @@ class Settings private constructor( private fun Int.toAutoplayAction() = when (this) { BLOCKED_INT -> AutoplayAction.BLOCKED ALLOWED_INT -> AutoplayAction.ALLOWED + // Users from older versions may have saved invalid values. Migrate them to BLOCKED + ASK_TO_ALLOW_INT -> AutoplayAction.BLOCKED else -> throw InvalidParameterException("$this is not a valid SitePermissionsRules.AutoplayAction") }