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
implement View.invalidate()
This commit is contained in:
@@ -231,3 +231,9 @@ JNIEXPORT void JNICALL Java_android_view_View_native_1constructor(JNIEnv *env, j
|
||||
|
||||
_SET_LONG_FIELD(this, "widget", (long)area);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_android_view_View_nativeInvalidate(JNIEnv *env, jclass, jlong widget_ptr) {
|
||||
GtkWidget *widget = GTK_WIDGET(_PTR(widget_ptr));
|
||||
|
||||
gtk_widget_queue_draw(gtk_widget_get_parent(widget));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user