diff options
author | 2020-12-07 14:33:17 +0000 | |
---|---|---|
committer | 2020-12-07 14:33:17 +0000 | |
commit | 71debbfcc5418929dca12cd6bfe1a1e9030a23cc (patch) | |
tree | 85910dbb34c0bd079953aecca7bb9799267442f3 /android/prebuilt.go | |
parent | 25c14959a2c1bac65fbfbe51693a5d6717c5ca26 (diff) | |
parent | 84f1b808664b9f764de6e97ba312911d3834e2a1 (diff) |
Merge "No matching variant android_app_import fix"
Diffstat (limited to 'android/prebuilt.go')
-rw-r--r-- | android/prebuilt.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/prebuilt.go b/android/prebuilt.go index 294a6e080..98cb5723a 100644 --- a/android/prebuilt.go +++ b/android/prebuilt.go @@ -178,6 +178,9 @@ func InitSingleSourcePrebuiltModule(module PrebuiltInterface, srcProps interface srcPropertyName := proptools.PropertyNameForField(srcField) srcsSupplier := func(ctx BaseModuleContext) []string { + if !ctx.Module().Enabled() { + return nil + } value := srcPropsValue.FieldByIndex(srcFieldIndex) if value.Kind() == reflect.Ptr { value = value.Elem() |