mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
Button: fix setText() overriding the compoundDrawable
This commit is contained in:
parent
b33a470c7b
commit
a9f377f754
1 changed files with 0 additions and 1 deletions
|
@ -37,7 +37,6 @@ JNIEXPORT void JNICALL Java_android_widget_Button_native_1setText(JNIEnv *env, j
|
|||
|
||||
const char *nativeText = ((*env)->GetStringUTFChars(env, text, NULL));
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue