diff options
author | Alan Viverette <alanv@google.com> | 2015-05-05 09:49:03 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-05-05 09:49:03 -0700 |
commit | c1d527926e1c82828e42bdc0c7abf50f6decc0a7 (patch) | |
tree | 48cfc47946a00d3c2126aa62fbf8e47e89e3dbf9 /include/androidfw | |
parent | 5551aca2b8ec9fe7ab5ffda8dad82ee104556962 (diff) | |
download | frameworks_base-c1d527926e1c82828e42bdc0c7abf50f6decc0a7.zip frameworks_base-c1d527926e1c82828e42bdc0c7abf50f6decc0a7.tar.gz frameworks_base-c1d527926e1c82828e42bdc0c7abf50f6decc0a7.tar.bz2 |
Add API for obtaining changing configurations bitmask from Theme
Required to know when to reload the system context's theme in response
to configuration changes, and thus needed to support the DayNight theme.
Bug: 20267825
Change-Id: I7df5e28b7a6d8b611ea030032544cf4800788514
Diffstat (limited to 'include/androidfw')
-rw-r--r-- | include/androidfw/ResourceTypes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/androidfw/ResourceTypes.h b/include/androidfw/ResourceTypes.h index df278c8..587e7fa 100644 --- a/include/androidfw/ResourceTypes.h +++ b/include/androidfw/ResourceTypes.h @@ -1662,6 +1662,12 @@ public: uint32_t* inoutTypeSpecFlags = NULL, ResTable_config* inoutConfig = NULL) const; + /** + * Returns a bit mask of configuration changes that will impact this + * theme (and thus require completely reloading it). + */ + uint32_t getChangingConfigurations() const; + void dumpToLog() const; private: @@ -1688,6 +1694,7 @@ public: const ResTable& mTable; package_info* mPackages[Res_MAXPACKAGE]; + uint32_t mTypeSpecFlags; }; void setParameters(const ResTable_config* params); |