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:
parent
054d96ded8
commit
e56935926e
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue