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
AndroidLayout: ignore exceptions during measure
This fixes a crash with the Flower Finder test apk, where ActionBarContextView doesn't allow MEASURE_SPEC_UNSPECIFIED
This commit is contained in:
@@ -34,8 +34,10 @@ static void android_layout_measure(GtkLayoutManager *layout_manager, GtkWidget *
|
||||
heightMeasureSpec = _GET_INT_FIELD(layout->view, "oldHeightMeasureSpec");
|
||||
if (widthMeasureSpec != -1 && heightMeasureSpec != -1) {
|
||||
(*env)->CallVoidMethod(env, layout->view, handle_cache.view.measure, widthMeasureSpec, heightMeasureSpec);
|
||||
if((*env)->ExceptionCheck(env))
|
||||
if((*env)->ExceptionCheck(env)) {
|
||||
(*env)->ExceptionDescribe(env);
|
||||
(*env)->ExceptionClear(env);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user