Merge pull request #4054 from k9mail/fix_openpgp_settings_crash

Fix crash when disabling OpenPGP support in settings
This commit is contained in:
cketti 2019-05-19 03:48:20 +02:00 committed by GitHub
commit 63b4b0b965
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,9 @@ public class OpenPgpApiManager implements LifecycleObserver {
getOpenPgpApi().executeApiAsync(intent, null, null, new IOpenPgpCallback() {
@Override
public void onReturn(Intent result) {
onPgpPermissionCheckResult(result);
if (openPgpProviderState != OpenPgpProviderState.UNCONFIGURED) {
onPgpPermissionCheckResult(result);
}
}
});
}