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:
parent
4f85dc2220
commit
b981cd0efd
1 changed files with 1 additions and 1 deletions
|
@ -297,8 +297,8 @@ public class OpenPgpAppSelectDialog extends FragmentActivity {
|
||||||
builder.setPositiveButton(R.string.dialog_openkeychain_info_install, new OnClickListener() {
|
builder.setPositiveButton(R.string.dialog_openkeychain_info_install, new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialogInterface, int i) {
|
public void onClick(DialogInterface dialogInterface, int i) {
|
||||||
startOpenKeychainInstallActivity();
|
|
||||||
dismiss();
|
dismiss();
|
||||||
|
startOpenKeychainInstallActivity();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue