[fenix] For https://github.com/mozilla-mobile/fenix/issues/12248: Webcompat reporter not active in Nightly

pull/600/head
Christian Sadilek 4 years ago
parent 6a7a29fc61
commit 4c49410910

@ -50,7 +50,6 @@ import org.mozilla.fenix.BuildConfig.DIGITAL_ASSET_LINKS_TOKEN
import org.mozilla.fenix.Config
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.ReleaseChannel
import org.mozilla.fenix.downloads.DownloadService
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.settings
@ -97,11 +96,7 @@ class Core(private val context: Context) {
* disabled in Fenix Release builds for now.
* This is consistent with both Fennec and Firefox Desktop.
*/
val shouldEnableWebcompatReporter = Config.channel !in setOf(
ReleaseChannel.FenixProduction,
ReleaseChannel.FennecProduction
)
if (shouldEnableWebcompatReporter) {
if (Config.channel.isNightlyOrDebug || Config.channel.isBeta) {
WebCompatReporterFeature.install(it)
}
}

Loading…
Cancel
Save