handle 'SEND' intent by copying to clipboard, make Activity subclass ContextWrapper, code style fixes

This commit is contained in:
Mis012
2024-02-10 20:37:28 +01:00
parent 50ba9b952a
commit 056b911637
7 changed files with 69 additions and 29 deletions

View File

@@ -11,6 +11,7 @@ public class Intent {
private String action;
private Uri data;
private int flags;
private String type;
public Intent() {}
public Intent(Intent o) {
@@ -43,10 +44,20 @@ public class Intent {
this.flags = flags;
return this;
}
public int getFlags() {
return flags;
}
public Intent setPackage(String packageName) {
return this; //??
}
public Intent setType(String type) {
this.type = type;
return this;
}
public Intent putExtra(String name, Parcelable value) {
extras.putParcelable(name, value);
return this;
@@ -220,7 +231,7 @@ public class Intent {
this.component = component;
return this;
}
public ComponentName getComponent() {
return component;
}
@@ -255,15 +266,10 @@ public class Intent {
@Override
public String toString() {
return "Intent [component=" + component + ", extras=" + extras + ", action=" + action + ", uri=" + data + "]";
return "Intent [component=" + component + ", extras=" + extras + ", action=" + action + ", type=" + type + ", uri=" + data + "]";
}
public static Intent createChooser(Intent target, CharSequence title) {
return target;
}
public int getFlags() {
return flags;
}
}