Added fail-safe

This commit is contained in:
M66B 2022-10-30 16:30:50 +01:00
parent a93d179839
commit 857c209912
1 changed files with 5 additions and 1 deletions

View File

@ -502,7 +502,11 @@ public class FragmentCompose extends FragmentBase {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (!hasFocus)
updateEncryption((EntityIdentity) spIdentity.getSelectedItem());
try {
updateEncryption((EntityIdentity) spIdentity.getSelectedItem());
} catch (Throwable ex) {
Log.e(ex);
}
}
};