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

@@ -178,23 +178,33 @@ public class Intent {
return this;
}
public Intent putExtras (Intent src) {
public Intent putExtras(Intent src) {
// FIXME HACK
this.extras = src.getExtras();
return this;
}
public Intent putExtras (Bundle extras) {
public Intent putExtras(Bundle extras) {
// FIXME HACK
this.extras = extras;
return this;
}
public Intent replaceExtras(Bundle extras) {
this.extras = extras;
return this;
}
public Intent setClass(Context packageContext, Class<?> cls) {
setComponent(new ComponentName(packageContext, cls));
return this;
}
public Intent setClassName(String packageName, String className) {
setComponent(new ComponentName(packageName, className));
return this;
}
public String getStringExtra(String name) {
return (String)extras.get(name);
}