Fix crash when disabling OpenPGP support in settings

This commit is contained in:
cketti 2019-05-19 02:54:46 +02:00
parent d3030a9196
commit bda31e5616

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);
}
}
});
}