mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
View: HACK: catch Exceptions during dispatch draw
This commit is contained in:
parent
b911d73eb3
commit
227f3c9682
1 changed files with 6 additions and 1 deletions
|
@ -1011,7 +1011,12 @@ public class View implements Drawable.Callback {
|
|||
if (canvas instanceof GskCanvas)
|
||||
native_drawBackground(widget, ((GskCanvas)canvas).snapshot);
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue