Fix crash when enabling openpgp

In onDismiss, getActivity returns null if the fragment is covered by the
chooser intent (F-Droid vs Google Play).
This commit is contained in:
ByteHamster 2019-10-13 11:48:38 +02:00
parent 4f85dc2220
commit b981cd0efd

View file

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