Correctly unmarshal errors from OpenKeychain (#615)
Fixes #614 Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
91f5797262
commit
14f1fa6538
4 changed files with 9 additions and 4 deletions
|
@ -1,7 +1,12 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## [1.4.0] - TBD
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- OpenKeychain errors cause app crash
|
||||||
|
|
||||||
|
## [1.4.0] - 2020-01-24
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Add save-and-copy button
|
- Add save-and-copy button
|
||||||
|
|
|
@ -40,11 +40,11 @@ import java.net.MalformedURLException
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
import java.util.ArrayList
|
import java.util.ArrayList
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import me.msfjarvis.openpgpktx.OpenPgpError
|
|
||||||
import me.msfjarvis.openpgpktx.util.OpenPgpApi
|
import me.msfjarvis.openpgpktx.util.OpenPgpApi
|
||||||
import me.msfjarvis.openpgpktx.util.OpenPgpServiceConnection
|
import me.msfjarvis.openpgpktx.util.OpenPgpServiceConnection
|
||||||
import org.apache.commons.io.FileUtils
|
import org.apache.commons.io.FileUtils
|
||||||
import org.openintents.openpgp.IOpenPgpService2
|
import org.openintents.openpgp.IOpenPgpService2
|
||||||
|
import org.openintents.openpgp.OpenPgpError
|
||||||
|
|
||||||
class AutofillService : AccessibilityService() {
|
class AutofillService : AccessibilityService() {
|
||||||
private var serviceConnection: OpenPgpServiceConnection? = null
|
private var serviceConnection: OpenPgpServiceConnection? = null
|
||||||
|
|
|
@ -54,7 +54,6 @@ import kotlinx.android.synthetic.main.encrypt_layout.generate_password
|
||||||
import kotlinx.coroutines.Dispatchers.IO
|
import kotlinx.coroutines.Dispatchers.IO
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.msfjarvis.openpgpktx.OpenPgpError
|
|
||||||
import me.msfjarvis.openpgpktx.util.OpenPgpApi
|
import me.msfjarvis.openpgpktx.util.OpenPgpApi
|
||||||
import me.msfjarvis.openpgpktx.util.OpenPgpApi.Companion.ACTION_DECRYPT_VERIFY
|
import me.msfjarvis.openpgpktx.util.OpenPgpApi.Companion.ACTION_DECRYPT_VERIFY
|
||||||
import me.msfjarvis.openpgpktx.util.OpenPgpApi.Companion.RESULT_CODE
|
import me.msfjarvis.openpgpktx.util.OpenPgpApi.Companion.RESULT_CODE
|
||||||
|
@ -67,6 +66,7 @@ import me.msfjarvis.openpgpktx.util.OpenPgpServiceConnection
|
||||||
import org.apache.commons.io.FileUtils
|
import org.apache.commons.io.FileUtils
|
||||||
import org.apache.commons.io.FilenameUtils
|
import org.apache.commons.io.FilenameUtils
|
||||||
import org.openintents.openpgp.IOpenPgpService2
|
import org.openintents.openpgp.IOpenPgpService2
|
||||||
|
import org.openintents.openpgp.OpenPgpError
|
||||||
|
|
||||||
class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
||||||
private val clipboard: ClipboardManager by lazy {
|
private val clipboard: ClipboardManager by lazy {
|
||||||
|
|
|
@ -40,7 +40,7 @@ ext.deps = [
|
||||||
commons_codec: 'commons-codec:commons-codec:1.13',
|
commons_codec: 'commons-codec:commons-codec:1.13',
|
||||||
jsch: 'com.jcraft:jsch:0.1.55',
|
jsch: 'com.jcraft:jsch:0.1.55',
|
||||||
jgit: 'org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r',
|
jgit: 'org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r',
|
||||||
openpgp_ktx: 'com.github.android-password-store:openpgp-ktx:1.1.0',
|
openpgp_ktx: 'com.github.android-password-store:openpgp-ktx:1.2.0',
|
||||||
ssh_auth: 'org.sufficientlysecure:sshauthentication-api:1.0'
|
ssh_auth: 'org.sufficientlysecure:sshauthentication-api:1.0'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue