Fix crash when enabling openpgp
In onDismiss, getActivity returns null if the fragment is covered by the
chooser intent (F-Droid vs Google Play).
@@ -297,8 +297,8 @@ public class OpenPgpAppSelectDialog extends FragmentActivity {
builder.setPositiveButton(R.string.dialog_openkeychain_info_install, new OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
- startOpenKeychainInstallActivity();
dismiss();
+ startOpenKeychainInstallActivity();
}
});
