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
api-impl/android/content: implement metadata bundle in PackageInfo
This commit is contained in:
@@ -834,7 +834,12 @@ public final class AssetManager {
|
||||
for (TableBlock tableBlock : tableBlocks) {
|
||||
for (PackageBlock packageBlock : tableBlock.listPackages()) {
|
||||
if (packageBlock.getName().equals(defPackage)) {
|
||||
return packageBlock.getEntry("", type, name).getResourceId();
|
||||
Entry entry = packageBlock.getEntry("", type, name);
|
||||
if(entry != null) {
|
||||
return entry.getResourceId();
|
||||
} else {
|
||||
return -1; // TODO: investigate
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user