Merge pull request #4054 from k9mail/fix_openpgp_settings_crash
Fix crash when disabling OpenPGP support in settings
This commit is contained in:
commit
63b4b0b965
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue