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 PackageParser.getResourcesForApplication()
This method is needed for the FlowerFinder test APK
This commit is contained in:
@@ -2748,7 +2748,7 @@ public class PackageManager {
|
||||
* application could not be loaded (most likely because it was uninstalled).
|
||||
*/
|
||||
public Resources getResourcesForApplication(ApplicationInfo app) throws NameNotFoundException {
|
||||
return null;
|
||||
return Context.this_application.getResources();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2767,14 +2767,14 @@ public class PackageManager {
|
||||
* @see #getResourcesForApplication(ApplicationInfo)
|
||||
*/
|
||||
public Resources getResourcesForApplication(String appPackageName) throws NameNotFoundException {
|
||||
return null;
|
||||
return Context.this_application.getResources();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) throws NameNotFoundException {
|
||||
return null;
|
||||
return Context.this_application.getResources();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user