Detekt: fix OptionalUnit issue.
This commit is contained in:
parent
51906c4596
commit
9a74948536
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue