mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-05-06 19:01:12 +03:00
add more API stubs for NewPipe
This commit is contained in:
parent
2013024971
commit
c830abc5f3
34 changed files with 310 additions and 23 deletions
|
@ -10,6 +10,7 @@ public class Intent {
|
|||
private Bundle extras = new Bundle();
|
||||
private String action;
|
||||
private Uri data;
|
||||
private int flags;
|
||||
|
||||
public Intent() {}
|
||||
public Intent(Intent o) {
|
||||
|
@ -34,11 +35,13 @@ public class Intent {
|
|||
}
|
||||
|
||||
public Intent addFlags(int flags) {
|
||||
return this; //??
|
||||
this.flags |= flags;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Intent setFlags(int flags) {
|
||||
return this; //??
|
||||
this.flags = flags;
|
||||
return this;
|
||||
}
|
||||
public Intent setPackage(String packageName) {
|
||||
return this; //??
|
||||
|
@ -206,7 +209,7 @@ public class Intent {
|
|||
}
|
||||
|
||||
public String getAction() {
|
||||
return null;
|
||||
return action;
|
||||
}
|
||||
|
||||
public Bundle getBundleExtra(String name) {
|
||||
|
@ -259,4 +262,8 @@ public class Intent {
|
|||
return target;
|
||||
}
|
||||
|
||||
public int getFlags() {
|
||||
return flags;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue