fix PackageHelper.copy npe

This commit is contained in:
HaliksaR 2020-11-15 06:38:14 +07:00
parent 7d68735706
commit bff06750cd
1 changed files with 2 additions and 2 deletions

View File

@ -579,8 +579,8 @@ object PackageHelper {
@Throws(IOException::class)
fun copy(src: File?, dst: File?) {
val cmd = Shell.su("mv ${src!!.absolutePath} ${dst!!.absolutePath}").exec().isSuccess
fun copy(src: File, dst: File) {
val cmd = Shell.su("mv ${src.absolutePath} ${dst.absolutePath}").exec().isSuccess
Log.d("ZLog", cmd.toString())
}