Prevent crash

This commit is contained in:
M66B
2019-12-29 17:10:25 +01:00
parent 567681c08f
commit b478bebf58
3 changed files with 13 additions and 8 deletions

View File

@@ -4062,7 +4062,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (auto && identity == null)
return;
Helper.selectKeyAlias(getActivity(), identity == null ? null : identity.sign_key_alias, new Helper.IKeyAlias() {
String alias = (identity == null ? null : identity.sign_key_alias);
Helper.selectKeyAlias(getActivity(), getViewLifecycleOwner(), alias, new Helper.IKeyAlias() {
@Override
public void onSelected(String alias) {
args.putString("alias", alias);