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
add some stubs needed since we now handle onMeasure() for more Views
This commit is contained in:
@@ -215,6 +215,14 @@ JNIEXPORT jlong JNICALL Java_android_widget_LinearLayout_native_1constructor
|
||||
JNIEXPORT void JNICALL Java_android_widget_LinearLayout_setOrientation
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: android_widget_LinearLayout
|
||||
* Method: getOrientation
|
||||
* Signature: ()I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_widget_LinearLayout_getOrientation
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -45,3 +45,8 @@ JNIEXPORT void JNICALL Java_android_widget_LinearLayout_setOrientation(JNIEnv *e
|
||||
{
|
||||
gtk_orientable_set_orientation(GTK_ORIENTABLE(_PTR(_GET_LONG_FIELD(this, "widget"))), orientation ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_android_widget_LinearLayout_getOrientation(JNIEnv *env, jobject this)
|
||||
{
|
||||
return gtk_orientable_get_orientation(GTK_ORIENTABLE(_PTR(_GET_LONG_FIELD(this, "widget"))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user