Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
App Lounge
Commits
d58e26a5
Commit
d58e26a5
authored
Aug 10, 2020
by
narinder Rana
Committed by
Romain Hunault
Aug 10, 2020
Browse files
Delete all Apk file which is Download for installing, after Install
parent
48ba9036
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/apps/application/model/Installer.kt
View file @
d58e26a5
...
...
@@ -26,6 +26,7 @@ import android.net.Uri
import
android.util.Log
import
androidx.core.content.ContextCompat
import
androidx.core.content.FileProvider
import
foundation.e.apps.XAPK.FsUtils.deleteFileOrDir
import
java.io.File
import
java.io.IOException
import
java.io.InputStream
...
...
@@ -138,6 +139,10 @@ class Installer(private val packageName: String,
if
(
p1
.
action
==
Intent
.
ACTION_PACKAGE_ADDED
&&
(
p1
.
data
.
encodedSchemeSpecificPart
==
packageName
))
{
Log
.
i
(
TAG
,
"Broadcast received"
)
var
path
=
apk
.
absolutePath
.
split
(
"Download"
)
//delete all APK file after install
deleteFileOrDir
(
path
[
0
]+
"Download"
);
callback
.
onInstallationComplete
(
p0
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment