Fix crash when disabling OpenPGP support in settings
@@ -126,8 +126,10 @@ public class OpenPgpApiManager implements LifecycleObserver {
getOpenPgpApi().executeApiAsync(intent, null, null, new IOpenPgpCallback() {
@Override
public void onReturn(Intent result) {
+ if (openPgpProviderState != OpenPgpProviderState.UNCONFIGURED) {
onPgpPermissionCheckResult(result);
}
+ }
});
}
