summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@sonyericsson.com>2010-06-02 15:42:28 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-08-17 13:18:59 +0200
commit2fda9f45623e888f71c6ea769305ccc4d9e76af2 (patch)
tree6350705338ec0eacd6f6d74653cca73cde772609 /libs/rs/rsg_ScriptJavaClass.cpp
parentc708e38356e9c381b640ef96db3b0b0fdd41d433 (diff)
Support changing style parent in overlays
Package overlays makes it possible for vendors to tweak the look of the platform and the applications without touching any platform or application code directly. This makes package overlays an important mechanism in the Android build system. There is currently a limitation that forbids changing the parent of a style. If vendors could change the parent of e.g. ‘CalendarTheme’ from Android’s vanilla ‘Theme’ to ‘VendorTheme’, then vendor specific adjustments could be done without changing any code directly. From looking at the code it can be seen that the parent value of a style is stored temporarily in ResourceTable::Entry::mParent while overlays are gone through in buildResources(), and processed (in ResourceTable::Entry::assignResourceIds()) at first after all overlays have been handled, so there aren’t any obvious reasons why changing parent in an overlay should be forbidden. Change-Id: I5969bb8aab90df437e1967fc504cc0da79107d13
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions