Instead of repeating the same if/else check on the error type when setting up the background message, move this in to BackgroundMessageView. Provide different `setup()` variants, including one that just takes a throwable and a handler, and figures out the correct drawables and error message. Update and simplify call sites. |
||
---|---|---|
.. | ||
actions.xml | ||
attrs.xml | ||
colors.xml | ||
dimens.xml | ||
donottranslate.xml | ||
ids.xml | ||
integers.xml | ||
plurals.xml | ||
string-arrays.xml | ||
strings.xml | ||
styles.xml | ||
theme_colors.xml | ||
toot_button.xml |