Merge pull request #967 from vector-im/feature/bma/detektConfig

Update detekt config.
This commit is contained in:
Benoit Marty 2023-07-28 16:47:26 +02:00 committed by GitHub
commit 822bb82347
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 296 additions and 198 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) {