Fix crash when disabling OpenPGP support in settings
This commit is contained in:
parent
d3030a9196
commit
bda31e5616
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