1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Handle answer security

This commit is contained in:
M66B 2020-06-07 15:52:29 +02:00
parent 054d96ded8
commit e56935926e

View file

@ -332,6 +332,15 @@ public class FragmentAnswer extends FragmentBase {
ssb.setSpan(is, start + 1, start + 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
etText.setText(ssb);
etText.setSelection(start + 2);
} catch (SecurityException ex) {
Snackbar sb = Snackbar.make(view, R.string.title_no_stream, Snackbar.LENGTH_INDEFINITE);
sb.setAction(R.string.title_info, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 49);
}
});
sb.show();
} catch (Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex);
}