api-impl: add stubs / simple stuff for OsmAnd

without native libs present, launches and renders white square
in map view; with native libs present, segfaults in bundled skia
This commit is contained in:
Mis012
2024-04-12 18:32:30 +02:00
parent fefd2f108b
commit 2802aaa28d
42 changed files with 2171 additions and 77 deletions

View File

@@ -217,10 +217,10 @@ JNIEXPORT void JNICALL Java_android_widget_ProgressBar_native_1setProgress
/*
* Class: android_widget_ProgressBar
* Method: setIndeterminate
* Method: native_setIndeterminate
* Signature: (Z)V
*/
JNIEXPORT void JNICALL Java_android_widget_ProgressBar_setIndeterminate
JNIEXPORT void JNICALL Java_android_widget_ProgressBar_native_1setIndeterminate
(JNIEnv *, jobject, jboolean);
#ifdef __cplusplus

View File

@@ -29,7 +29,7 @@ JNIEXPORT void JNICALL Java_android_widget_ProgressBar_native_1setProgress(JNIEn
gtk_progress_bar_set_fraction(progress_bar, progress);
}
JNIEXPORT void JNICALL Java_android_widget_ProgressBar_setIndeterminate(JNIEnv *env, jobject this, jboolean indeterminate)
JNIEXPORT void JNICALL Java_android_widget_ProgressBar_native_1setIndeterminate(JNIEnv *env, jobject this, jboolean indeterminate)
{
GtkWidget *box = GTK_WIDGET(_PTR(_GET_LONG_FIELD(this, "widget")));
GtkProgressBar *progress_bar = GTK_PROGRESS_BAR(gtk_widget_get_first_child(box));