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
implement some APIs needed for OctoDroid
This commit is contained in:
@@ -35,6 +35,7 @@ import android.util.DisplayMetrics;
|
||||
import android.util.Slog;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.reandroid.arsc.chunk.xml.AndroidManifestBlock;
|
||||
@@ -2226,7 +2227,9 @@ public class PackageManager {
|
||||
*/
|
||||
public List<ResolveInfo> queryIntentActivities(Intent intent,
|
||||
int flags) {
|
||||
return new ArrayList<ResolveInfo>();
|
||||
ResolveInfo info = new ResolveInfo();
|
||||
info.activityInfo.exported = true;
|
||||
return Arrays.asList(info);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,4 +2,10 @@ package android.content.pm;
|
||||
|
||||
public class ResolveInfo {
|
||||
public ActivityInfo activityInfo = new ActivityInfo();
|
||||
|
||||
public static class DisplayNameComparator {
|
||||
|
||||
public DisplayNameComparator(PackageManager pm) {}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user