You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Layout: fix NullPointerException in constructor
This commit is contained in:
@@ -29,7 +29,7 @@ public class Layout {
|
|||||||
this.spacing_mult = spacingMult;
|
this.spacing_mult = spacingMult;
|
||||||
this.spacing_add = spacingAdd;
|
this.spacing_add = spacingAdd;
|
||||||
this.align = align;
|
this.align = align;
|
||||||
layout = native_constructor(text.toString(), paint.paint, width);
|
layout = native_constructor(text != null ? text.toString() : "", paint.paint, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getLineCount() {
|
public int getLineCount() {
|
||||||
|
|||||||
Reference in New Issue
Block a user