mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-30 05:07:58 +03:00
api-impl,libandroid: Add some stubs, mostly
This commit is contained in:
parent
a32961891d
commit
d3e5c6ee70
8 changed files with 102 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue