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
Button: fix setText() overriding the compoundDrawable
This commit is contained in:
@@ -37,7 +37,6 @@ JNIEXPORT void JNICALL Java_android_widget_Button_native_1setText(JNIEnv *env, j
|
|||||||
|
|
||||||
const char *nativeText = ((*env)->GetStringUTFChars(env, text, NULL));
|
const char *nativeText = ((*env)->GetStringUTFChars(env, text, NULL));
|
||||||
gtk_label_set_text(box_get_label(env, gtk_button_get_child(button)), nativeText);
|
gtk_label_set_text(box_get_label(env, gtk_button_get_child(button)), nativeText);
|
||||||
gtk_button_set_label(button, nativeText);
|
|
||||||
((*env)->ReleaseStringUTFChars(env, text, nativeText));
|
((*env)->ReleaseStringUTFChars(env, text, nativeText));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user