mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-29 04:37:58 +03:00
fix some NullPointerExceptions with Flower Finder test apk
This commit is contained in:
parent
37d9b13470
commit
399cf87254
2 changed files with 4 additions and 2 deletions
|
@ -81,7 +81,8 @@ public class TextView extends View {
|
|||
native_setTextColor(color);
|
||||
}
|
||||
public void setTextColor(ColorStateList colors) {
|
||||
setTextColor(colors.getDefaultColor()); // TODO: do this properly
|
||||
if (colors != null)
|
||||
setTextColor(colors.getDefaultColor()); // TODO: do this properly
|
||||
}
|
||||
public void setTextSize(int unit, float size) {}
|
||||
public void setTypeface(Typeface tf, int style) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue