aboutsummaryrefslogtreecommitdiffstats
path: root/java/system_modules.go
diff options
context:
space:
mode:
Diffstat (limited to 'java/system_modules.go')
-rw-r--r--java/system_modules.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/java/system_modules.go b/java/system_modules.go
index 5234d174..196d041c 100644
--- a/java/system_modules.go
+++ b/java/system_modules.go
@@ -112,11 +112,9 @@ type SystemModulesProperties struct {
func (system *SystemModules) GenerateAndroidBuildActions(ctx android.ModuleContext) {
var jars android.Paths
- ctx.VisitDirectDeps(func(module android.Module) {
- if ctx.OtherModuleDependencyTag(module) == libTag {
- dep, _ := module.(Dependency)
- jars = append(jars, dep.HeaderJars()...)
- }
+ ctx.VisitDirectDepsWithTag(libTag, func(module android.Module) {
+ dep, _ := module.(Dependency)
+ jars = append(jars, dep.HeaderJars()...)
})
jars = append(jars, android.PathsForModuleSrc(ctx, system.properties.Jars)...)