Handle answer security

This commit is contained in:
M66B 2020-06-07 15:52:29 +02:00
parent 054d96ded8
commit e56935926e
1 changed files with 9 additions and 0 deletions

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);
}