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: provide default width and height
setLayoutParams() will never be called on the contentView of the Window. So make sure we have default values
This commit is contained in:
@@ -94,6 +94,8 @@ GtkLayoutManager *android_layout_new(jobject view)
|
||||
{
|
||||
AndroidLayout *layout = g_object_new(android_layout_get_type(), NULL);
|
||||
layout->view = view;
|
||||
layout->width = MATCH_PARENT;
|
||||
layout->height = MATCH_PARENT;
|
||||
return &layout->parent_instance;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user