Skip to content

Commit

Permalink
For mozilla-mobile#13959: always enable detectNonSdkApiUsage.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mcomella committed Sep 28, 2020
1 parent 3983c50 commit f05a542
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/src/main/java/org/mozilla/fenix/StrictModeManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ object StrictModeManager {
builder.detectContentUriWithoutPermission()
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
if (setPenaltyDeath || setPenaltyDialog) {
builder.permitNonSdkApiUsage()
} else {
builder.detectNonSdkApiUsage()
}
builder.detectNonSdkApiUsage()
}
StrictMode.setVmPolicy(builder.build())
}
Expand Down

0 comments on commit f05a542

Please sign in to comment.