aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/zeapo/pwdstore/autofill
diff options
context:
space:
mode:
authorDiogenes Molinares <amolinares19@gmail.com>2020-06-10 10:35:03 +0200
committerGitHub <noreply@github.com>2020-06-10 14:05:03 +0530
commit0050deb5012d158f83f04bc6be61a52596fa99c2 (patch)
tree51417971d7b7dbcbeb3d34d688c9a8d45a9c24ca /app/src/main/java/com/zeapo/pwdstore/autofill
parent7569d4027081d27a6e3d975c14cfc9bdcd879257 (diff)
downloadHardenedPass-0050deb5012d158f83f04bc6be61a52596fa99c2.tar.gz
HardenedPass-0050deb5012d158f83f04bc6be61a52596fa99c2.zip
Remove Apache Commons dependencies (#840)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/autofill')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.kt3
1 files changed, 1 insertions, 2 deletions
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)