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
(Gsk)Canvas: add debug prints, and a hack
This commit is contained in:
@@ -71,6 +71,10 @@ public class GskCanvas extends Canvas {
|
||||
|
||||
@Override
|
||||
public void drawText(String text, float x, float y, Paint paint) {
|
||||
if(text == null) {
|
||||
new Exception("drawText: text is null; stack trace:").printStackTrace();
|
||||
return;
|
||||
}
|
||||
native_drawText(snapshot, text, x, y, paint != null ? paint.paint : default_paint.paint);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user