[fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: always enable detectNonSdkApiUsage.

We don't use penalty death for the VM policy so we theoretically don't
need to disable this check if penalty death is enabled.
pull/600/head
Michael Comella 4 years ago committed by Michael Comella
parent eca2b8ecf4
commit 3b76f2b3fc

@ -47,11 +47,7 @@ object StrictModeManager {
builder.detectContentUriWithoutPermission() builder.detectContentUriWithoutPermission()
} }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
if (setPenaltyDeath || setPenaltyDialog) { builder.detectNonSdkApiUsage()
builder.permitNonSdkApiUsage()
} else {
builder.detectNonSdkApiUsage()
}
} }
StrictMode.setVmPolicy(builder.build()) StrictMode.setVmPolicy(builder.build())
} }

Loading…
Cancel
Save