CreateModule also inherits variableProperties.
Bug: N/A
Test: manual
Change-Id: Ic5ecbeac04841d4016c0caa8710a6adae1ec2bd6
diff --git a/android/mutator.go b/android/mutator.go
index 8e4343d..e76f847 100644
--- a/android/mutator.go
+++ b/android/mutator.go
@@ -244,8 +244,8 @@
}
func (t *topDownMutatorContext) CreateModule(factory blueprint.ModuleFactory, props ...interface{}) {
- common := []interface{}{&t.Module().base().commonProperties}
- t.bp.CreateModule(factory, append(common, props...)...)
+ inherited := []interface{}{&t.Module().base().commonProperties, &t.Module().base().variableProperties}
+ t.bp.CreateModule(factory, append(inherited, props...)...)
}
func (b *bottomUpMutatorContext) MutatorName() string {