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
TextView: store text in the Java object
Some apps expect getText() to return a Spannable instead of a String.
This commit is contained in:
@@ -239,14 +239,6 @@ JNIEXPORT void JNICALL Java_android_widget_TextView_setTextSize
|
||||
JNIEXPORT void JNICALL Java_android_widget_TextView_native_1setTextColor
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: android_widget_TextView
|
||||
* Method: getText
|
||||
* Signature: ()Ljava/lang/CharSequence;
|
||||
*/
|
||||
JNIEXPORT jobject JNICALL Java_android_widget_TextView_getText
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_widget_TextView
|
||||
* Method: native_setCompoundDrawables
|
||||
|
||||
@@ -97,11 +97,6 @@ JNIEXPORT void JNICALL Java_android_widget_TextView_native_1set_1markup(JNIEnv *
|
||||
gtk_label_set_use_markup(label, value);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_android_widget_TextView_getText(JNIEnv *env, jobject this)
|
||||
{
|
||||
return _JSTRING(gtk_label_get_text(box_get_label(env, _PTR(_GET_LONG_FIELD(this, "widget")))));
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_android_widget_TextView_native_1setCompoundDrawables(JNIEnv *env, jobject this, jlong widget_ptr, jlong left, jlong top, jlong right, jlong bottom)
|
||||
{
|
||||
GtkWidget *box = GTK_WIDGET(_PTR(widget_ptr));
|
||||
|
||||
Reference in New Issue
Block a user