mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Detekt: fix OptionalUnit issue.
This commit is contained in:
committed by
Benoit Marty
parent
29db17ae09
commit
bf49078e40
+1
-2
@@ -130,8 +130,7 @@ class AndroidLocalMediaActions @Inject constructor(
|
|||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
if (activityContext?.packageManager?.canRequestPackageInstalls() == false) {
|
if (activityContext?.packageManager?.canRequestPackageInstalls() == false) {
|
||||||
pendingMedia = localMedia
|
pendingMedia = localMedia
|
||||||
activityContext?.startInstallFromSourceIntent(apkInstallLauncher!!)
|
activityContext?.startInstallFromSourceIntent(apkInstallLauncher!!).let { }
|
||||||
Unit
|
|
||||||
} else {
|
} else {
|
||||||
openFile(localMedia)
|
openFile(localMedia)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user