Give conversation a standard navigate up button.

* Prevent a failing IDE preview.
This commit is contained in:
Alan Evans
2019-05-24 14:31:48 -03:00
parent 2ae42cb095
commit 350d1f47d3
5 changed files with 127 additions and 122 deletions

View File

@@ -38,9 +38,12 @@ public class ThemeUtil {
TypedValue outValue = new TypedValue();
if (context.getTheme().resolveAttribute(attribute, outValue, true)) {
return outValue.coerceToString().toString();
} else {
return defaultValue;
CharSequence charSequence = outValue.coerceToString();
if (charSequence != null) {
return charSequence.toString();
}
}
return defaultValue;
}
}