Enable detekt rule ImplicitDefaultLocale and fix existing issue.

This commit is contained in:
Benoit Marty 2023-07-26 10:11:00 +02:00
parent 6aa5239189
commit 3f372e5804
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@ fun Context.startInstallFromSourceIntent(
noActivityFoundMessage: String = getString(R.string.error_no_compatible_app_found),
) {
val intent = Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES)
.setData(Uri.parse(String.format("package:%s", packageName)))
.setData(Uri.parse("package:$packageName"))
try {
activityResultLauncher.launch(intent)
} catch (activityNotFoundException: ActivityNotFoundException) {

View file

@ -48,7 +48,7 @@ empty-blocks:
potential-bugs:
ImplicitDefaultLocale:
active: false
active: true
exceptions:
TooGenericExceptionCaught: