Handle answer security

pull/180/head
M66B 5 years ago
parent 054d96ded8
commit e56935926e

@ -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…
Cancel
Save