summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-12-13 15:54:49 -0800
committer Colin Cross <ccross@android.com> 2023-12-14 16:12:21 -0800
commitff694a8c88c632559c72653edf99f21c3d761dee (patch)
treea0b6c2a6cda60be82412b377d15d0a9b86eca065 /android/module.go
parent402130276c75fd967dcae894bd363edc3050d205 (diff)
Convert Provider to generic providers API
Convert all of the callers of Provider/HasProvider to use the type-safe android.ModuleProvider API. Bug: 316410648 Test: builds Change-Id: I73479de1625fa2865b6c73444cd477e50d56dc5a
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/module.go b/android/module.go
index f57115799..7e88797d6 100644
--- a/android/module.go
+++ b/android/module.go
@@ -1648,7 +1648,7 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext)
if !ctx.PrimaryArch() {
suffix = append(suffix, ctx.Arch().ArchType.String())
}
- if apexInfo := ctx.Provider(ApexInfoProvider).(ApexInfo); !apexInfo.IsForPlatform() {
+ if apexInfo, _ := ModuleProvider(ctx, ApexInfoProvider); !apexInfo.IsForPlatform() {
suffix = append(suffix, apexInfo.ApexVariationName)
}