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
Add some missing APIs.
android.widget.Filter and android.webkit.MimeTypeMap are copied from AOSP. Other new classes are only stub implementations.
This commit is contained in:
@@ -4,8 +4,6 @@ import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class Intent {
|
||||
private ComponentName component;
|
||||
@@ -193,6 +191,18 @@ public class Intent {
|
||||
return (Serializable)extras.get(name);
|
||||
}
|
||||
|
||||
public Parcelable getParcelableExtra(String name) {
|
||||
return extras.getParcelable(name);
|
||||
}
|
||||
|
||||
public String[] getStringArrayExtra(String name) {
|
||||
return extras.getStringArray(name);
|
||||
}
|
||||
|
||||
public int getIntExtra(String name, int def) {
|
||||
return extras.getInt(name, def);
|
||||
}
|
||||
|
||||
public Bundle getExtras() {
|
||||
return extras;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user