File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/src/main/kotlin/com/d4rk/cleaner/app/apps/manager/data Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,10 @@ class AppPackageManagerImpl(private val application: Application) : ApkInstaller
56
56
)
57
57
shareIntent.putExtra(Intent .EXTRA_STREAM , contentUri)
58
58
shareIntent.addFlags(Intent .FLAG_GRANT_READ_URI_PERMISSION )
59
- Intent .createChooser(shareIntent, null )
60
- }.onSuccess { intent: Intent ->
61
- emit(value = DataState .Success (data = intent))
59
+ val chooserIntent = Intent .createChooser(shareIntent, null )
60
+ chooserIntent
61
+ }.onSuccess { chooserIntent: Intent ->
62
+ emit(value = DataState .Success (data = chooserIntent))
62
63
}.onFailure { throwable ->
63
64
emit(value = DataState .Error (error = throwable.toError(default = Errors .UseCase .FAILED_TO_SHARE_APK )))
64
65
}
You can’t perform that action at this time.
0 commit comments