summaryrefslogtreecommitdiff
path: root/java/app_import.go
diff options
context:
space:
mode:
Diffstat (limited to 'java/app_import.go')
-rw-r--r--java/app_import.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/app_import.go b/java/app_import.go
index c5d09fdf1..ff0f5fe2f 100644
--- a/java/app_import.go
+++ b/java/app_import.go
@@ -257,7 +257,7 @@ func (a *AndroidAppImport) generateAndroidBuildActions(ctx android.ModuleContext
ctx.ModuleErrorf("prebuilt_framework-res found. This used to have special handling in soong, but was removed due to prebuilt_framework-res no longer existing. This check is to ensure it doesn't come back without readding the special handling.")
}
- apexInfo := ctx.Provider(android.ApexInfoProvider).(android.ApexInfo)
+ apexInfo, _ := android.ModuleProvider(ctx, android.ApexInfoProvider)
if !apexInfo.IsForPlatform() {
a.hideApexVariantFromMake = true
}