From 0050deb5012d158f83f04bc6be61a52596fa99c2 Mon Sep 17 00:00:00 2001 From: Diogenes Molinares Date: Wed, 10 Jun 2020 10:35:03 +0200 Subject: Remove Apache Commons dependencies (#840) Co-authored-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/autofill') diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.kt b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.kt index 0e8809e7..26c86fc8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.kt +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.kt @@ -39,7 +39,6 @@ import kotlinx.coroutines.launch import kotlinx.coroutines.withContext import me.msfjarvis.openpgpktx.util.OpenPgpApi import me.msfjarvis.openpgpktx.util.OpenPgpServiceConnection -import org.apache.commons.io.FileUtils import org.openintents.openpgp.IOpenPgpService2 import org.openintents.openpgp.OpenPgpError import java.io.ByteArrayOutputStream @@ -497,7 +496,7 @@ class AutofillService : AccessibilityService(), CoroutineScope by CoroutineScope var inputStream: InputStream? = null withContext(Dispatchers.IO) { try { - inputStream = FileUtils.openInputStream(items[lastWhichItem]) + inputStream = items[lastWhichItem].inputStream() } catch (e: IOException) { e.printStackTrace() cancel("", e) -- cgit v1.2.3