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
multiple additions and fixes for the Java APIs
Stuff needed for WhatsApp support
This commit is contained in:
@@ -318,4 +318,15 @@ public class Intent {
|
||||
public String getPackage() {
|
||||
return component.getPackageName();
|
||||
}
|
||||
|
||||
public String getScheme() {
|
||||
return data == null ? null : data.getScheme();
|
||||
}
|
||||
|
||||
public static class ShortcutIconResource {
|
||||
|
||||
public static ShortcutIconResource fromContext(Context context, int id) {
|
||||
return new ShortcutIconResource();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user