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
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user