diff options
| author | 2018-07-19 13:50:26 -0700 | |
|---|---|---|
| committer | 2018-07-19 13:50:26 -0700 | |
| commit | ef7cd8095c6d576a05916fdc35cc9b936f59e772 (patch) | |
| tree | 7e4e7b31f43439e82d4026ce8cd212aec8c23af5 /libs/androidfw/LoadedArsc.cpp | |
| parent | a48b21a802bc7293d7282514cde1952dbace6331 (diff) | |
| parent | 69ce2e9444fc7a96ee67c4ff51e9ad38d0840bd8 (diff) | |
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
Bug: 111615259
Change-Id: I0f2e2a580ade052b309802599141315c16e59aa2
Diffstat (limited to 'libs/androidfw/LoadedArsc.cpp')
| -rw-r--r-- | libs/androidfw/LoadedArsc.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/androidfw/LoadedArsc.cpp b/libs/androidfw/LoadedArsc.cpp index 04d506a2d71c..c2740c9fbaa4 100644 --- a/libs/androidfw/LoadedArsc.cpp +++ b/libs/androidfw/LoadedArsc.cpp @@ -560,7 +560,9 @@ std::unique_ptr<const LoadedPackage> LoadedPackage::Load(const Chunk& chunk, if (iter.HadError()) { LOG(ERROR) << iter.GetLastError(); - return {}; + if (iter.HadFatalError()) { + return {}; + } } // Flatten and construct the TypeSpecs. @@ -641,7 +643,9 @@ bool LoadedArsc::LoadTable(const Chunk& chunk, const LoadedIdmap* loaded_idmap, if (iter.HadError()) { LOG(ERROR) << iter.GetLastError(); - return false; + if (iter.HadFatalError()) { + return false; + } } return true; } @@ -673,7 +677,9 @@ std::unique_ptr<const LoadedArsc> LoadedArsc::Load(const StringPiece& data, if (iter.HadError()) { LOG(ERROR) << iter.GetLastError(); - return {}; + if (iter.HadFatalError()) { + return {}; + } } // Need to force a move for mingw32. |