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,libandroid: Add some stubs, mostly
This commit is contained in:
@@ -164,6 +164,18 @@ public class Intent {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Intent putExtras (Intent src) {
|
||||
// FIXME HACK
|
||||
this.extras = src.getExtras();
|
||||
return this;
|
||||
}
|
||||
|
||||
public Intent putExtras (Bundle extras) {
|
||||
// FIXME HACK
|
||||
this.extras = extras;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Intent setClass(Context packageContext, Class<?> cls) {
|
||||
setComponent(new ComponentName(packageContext, cls));
|
||||
return this;
|
||||
@@ -177,6 +189,13 @@ public class Intent {
|
||||
return data;
|
||||
}
|
||||
|
||||
public String getDataString () {
|
||||
if (data == null)
|
||||
return "";
|
||||
|
||||
return data.toString();
|
||||
}
|
||||
|
||||
public boolean getBooleanExtra(String name, boolean defaultValue) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user