Fix ordering of overlays
am: 68a7023436
Change-Id: I39cc6eb00b4a9d9607ad689472de96ae8273bbbb
This commit is contained in:
@@ -412,7 +412,11 @@ func (overlaySingleton) GenerateBuildActions(ctx android.SingletonContext) {
|
||||
}
|
||||
|
||||
var overlayData []overlayGlobResult
|
||||
for _, overlay := range ctx.Config().ResourceOverlays() {
|
||||
overlayDirs := ctx.Config().ResourceOverlays()
|
||||
for i := range overlayDirs {
|
||||
// Iterate backwards through the list of overlay directories so that the later, lower-priority
|
||||
// directories in the list show up earlier in the command line to aapt2.
|
||||
overlay := overlayDirs[len(overlayDirs)-1-i]
|
||||
var result overlayGlobResult
|
||||
result.dir = overlay
|
||||
|
||||
|
@@ -111,13 +111,13 @@ var testEnforceRROTests = []struct {
|
||||
enforceRROTargets: nil,
|
||||
enforceRROExcludedOverlays: nil,
|
||||
fooOverlayFiles: []string{
|
||||
"device/vendor/blah/overlay/foo/res/values/strings.xml",
|
||||
"device/vendor/blah/static_overlay/foo/res/values/strings.xml",
|
||||
"device/vendor/blah/overlay/foo/res/values/strings.xml",
|
||||
},
|
||||
fooRRODirs: nil,
|
||||
barOverlayFiles: []string{
|
||||
"device/vendor/blah/overlay/bar/res/values/strings.xml",
|
||||
"device/vendor/blah/static_overlay/bar/res/values/strings.xml",
|
||||
"device/vendor/blah/overlay/bar/res/values/strings.xml",
|
||||
},
|
||||
barRRODirs: nil,
|
||||
},
|
||||
@@ -132,8 +132,8 @@ var testEnforceRROTests = []struct {
|
||||
"device/vendor/blah/overlay/foo/res",
|
||||
},
|
||||
barOverlayFiles: []string{
|
||||
"device/vendor/blah/overlay/bar/res/values/strings.xml",
|
||||
"device/vendor/blah/static_overlay/bar/res/values/strings.xml",
|
||||
"device/vendor/blah/overlay/bar/res/values/strings.xml",
|
||||
},
|
||||
barRRODirs: nil,
|
||||
},
|
||||
|
Reference in New Issue
Block a user