summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-15 20:45:01 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-01-15 20:45:01 -0800
commita2c4c09e6f8b0a63347f2fa0a9028535e3dc88e4 (patch)
tree59555625730c2f6b807a08330d0f4b9a798796e3 /java
parent7f7077ce06afe7faf1f1033da7e86df84373e44c (diff)
parentb732c842ae305e55bf27ecc05f83e85b49023243 (diff)
Merge "Fix a bug where disbled modules generating error messages." into main
Diffstat (limited to 'java')
-rw-r--r--java/app.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/app.go b/java/app.go
index f4c658cac..34a172e8a 100644
--- a/java/app.go
+++ b/java/app.go
@@ -1171,6 +1171,9 @@ func collectJniDeps(ctx android.ModuleContext,
seenModulePaths := make(map[string]bool)
ctx.WalkDepsProxy(func(module, parent android.ModuleProxy) bool {
+ if !android.OtherModuleProviderOrDefault(ctx, module, android.CommonModuleInfoKey).Enabled {
+ return false
+ }
otherName := ctx.OtherModuleName(module)
tag := ctx.OtherModuleDependencyTag(module)