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

@@ -4,6 +4,10 @@ import android.content.Context;
public class Toast {
public Toast(Context context) {
/* TODO */
}
private String text;
public static Toast makeText(Context context, int resId, int duration) {
@@ -11,7 +15,7 @@ public class Toast {
}
public static Toast makeText(Context context, CharSequence text, int duration) {
Toast toast = new Toast();
Toast toast = new Toast(context);
toast.text = String.valueOf(text);
return toast;
}