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

Commit 378bdf9f authored by Ryan Prichard's avatar Ryan Prichard Committed by Automerger Merge Worker
Browse files

Merge "Move Theme::Entry definition to top of file" into udc-dev-plus-aosp am: 81a7cf81

parents 106a8f88 81a7cf81
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -91,6 +91,12 @@ struct FindEntryResult {
  StringPoolRef entry_string_ref;
};

struct Theme::Entry {
  ApkAssetsCookie cookie;
  uint32_t type_spec_flags;
  Res_value value;
};

AssetManager2::AssetManager2(ApkAssetsList apk_assets, const ResTable_config& configuration)
    : configuration_(configuration) {
  // Don't invalidate caches here as there's nothing cached yet.
@@ -1523,12 +1529,6 @@ Theme::Theme(AssetManager2* asset_manager) : asset_manager_(asset_manager) {

Theme::~Theme() = default;

struct Theme::Entry {
  ApkAssetsCookie cookie;
  uint32_t type_spec_flags;
  Res_value value;
};

base::expected<std::monostate, NullOrIOError> Theme::ApplyStyle(uint32_t resid, bool force) {
  ATRACE_NAME("Theme::ApplyStyle");