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
View: HACK: catch Exceptions during dispatch draw
This commit is contained in:
@@ -1011,7 +1011,12 @@ public class View implements Drawable.Callback {
|
|||||||
if (canvas instanceof GskCanvas)
|
if (canvas instanceof GskCanvas)
|
||||||
native_drawBackground(widget, ((GskCanvas)canvas).snapshot);
|
native_drawBackground(widget, ((GskCanvas)canvas).snapshot);
|
||||||
onDraw(canvas);
|
onDraw(canvas);
|
||||||
dispatchDraw(canvas);
|
// HACK: catch non critical exceptions happening in some composeUI apps
|
||||||
|
try {
|
||||||
|
dispatchDraw(canvas);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public View(Context context) {
|
public View(Context context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user