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
handle 'SEND' intent by copying to clipboard, make Activity subclass ContextWrapper, code style fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user