mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Enable detekt rule ImplicitDefaultLocale and fix existing issue.
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ fun Context.startInstallFromSourceIntent(
|
|||||||
noActivityFoundMessage: String = getString(R.string.error_no_compatible_app_found),
|
noActivityFoundMessage: String = getString(R.string.error_no_compatible_app_found),
|
||||||
) {
|
) {
|
||||||
val intent = Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES)
|
val intent = Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES)
|
||||||
.setData(Uri.parse(String.format("package:%s", packageName)))
|
.setData(Uri.parse("package:$packageName"))
|
||||||
try {
|
try {
|
||||||
activityResultLauncher.launch(intent)
|
activityResultLauncher.launch(intent)
|
||||||
} catch (activityNotFoundException: ActivityNotFoundException) {
|
} catch (activityNotFoundException: ActivityNotFoundException) {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ empty-blocks:
|
|||||||
|
|
||||||
potential-bugs:
|
potential-bugs:
|
||||||
ImplicitDefaultLocale:
|
ImplicitDefaultLocale:
|
||||||
active: false
|
active: true
|
||||||
|
|
||||||
exceptions:
|
exceptions:
|
||||||
TooGenericExceptionCaught:
|
TooGenericExceptionCaught:
|
||||||
|
|||||||
Reference in New Issue
Block a user