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
AssetManager: fix Asset XML file not found error on 32bit
The xmlBlock variable is now a pointer with the recent changes. So, we shouldn't compare it with >= 0. The error went unnoticed, because it was only tested on 64bit until now
This commit is contained in:
@@ -472,7 +472,7 @@ public final class AssetManager {
|
||||
throw new RuntimeException("Assetmanager has been closed");
|
||||
}
|
||||
xmlBlock = openXmlAssetNative(cookie, fileName);
|
||||
if (xmlBlock >= 0) {
|
||||
if (xmlBlock != 0) {
|
||||
XmlBlock res = new XmlBlock(this, xmlBlock);
|
||||
incRefsLocked(res.hashCode());
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user