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
uncomment PackageParser.parsePackage()
This commit is contained in:
@@ -492,7 +492,7 @@ public class PackageParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Package parsePackage(File sourceFile, String destCodePath,
|
public Package parsePackage(File sourceFile, String destCodePath,
|
||||||
DisplayMetrics metrics, int flags) { /*
|
DisplayMetrics metrics, int flags) {
|
||||||
mParseError = PackageManager.INSTALL_SUCCEEDED;
|
mParseError = PackageManager.INSTALL_SUCCEEDED;
|
||||||
|
|
||||||
mArchiveSourcePath = sourceFile.getPath();
|
mArchiveSourcePath = sourceFile.getPath();
|
||||||
@@ -521,7 +521,7 @@ public class PackageParser {
|
|||||||
boolean assetError = true;
|
boolean assetError = true;
|
||||||
try {
|
try {
|
||||||
assmgr = new AssetManager();
|
assmgr = new AssetManager();
|
||||||
int cookie = assmgr.addAssetPath(mArchiveSourcePath);
|
int cookie = 1; assmgr.addAssetPath(mArchiveSourcePath);
|
||||||
if (cookie != 0) {
|
if (cookie != 0) {
|
||||||
res = new Resources(assmgr, metrics, null);
|
res = new Resources(assmgr, metrics, null);
|
||||||
assmgr.setConfiguration(0, 0, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
assmgr.setConfiguration(0, 0, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
@@ -583,8 +583,6 @@ public class PackageParser {
|
|||||||
pkg.mSignatures = null;
|
pkg.mSignatures = null;
|
||||||
|
|
||||||
return pkg;
|
return pkg;
|
||||||
*/
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user