Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fe898dc authored by Eric Miao's avatar Eric Miao Committed by Android (Google) Code Review
Browse files

Merge "Fix the condition to use compact resource entries"

parents a4ca7472 0e01fdf5
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -144,8 +144,7 @@ class PackageFlattener {
  // 2) the entries will be accessed on platforms U+, and
  // 3) all entry keys can be encoded in 16 bits
  bool UseCompactEntries(const ConfigDescription& config, std::vector<FlatEntry>* entries) const {
    return compact_entries_ &&
        (context_->GetMinSdkVersion() > SDK_TIRAMISU || config.sdkVersion > SDK_TIRAMISU) &&
    return compact_entries_ && context_->GetMinSdkVersion() > SDK_TIRAMISU &&
      std::none_of(entries->cbegin(), entries->cend(),
        [](const auto& e) { return e.entry_key >= std::numeric_limits<uint16_t>::max(); });
  }