From a963b94cde194257fa67ce9596026a4da2fe7523 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Thu, 11 Apr 2024 17:43:00 -0700 Subject: Make the enabled property configurable This allows using select statements with it. Bug: 323382414 Test: m nothing --no-skip-soong-tests Change-Id: I6f3efaaa3d82505e38a91ee4ba0e18e404360191 Merged-In: If355d24506e3f117d27b21442a6c02bca3402dc7 --- java/boot_jars.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/boot_jars.go') diff --git a/java/boot_jars.go b/java/boot_jars.go index 5d40ec389..6223dede8 100644 --- a/java/boot_jars.go +++ b/java/boot_jars.go @@ -21,8 +21,8 @@ import ( // isActiveModule returns true if the given module should be considered for boot // jars, i.e. if it's enabled and the preferred one in case of source and // prebuilt alternatives. -func isActiveModule(module android.Module) bool { - if !module.Enabled() { +func isActiveModule(ctx android.ConfigAndErrorContext, module android.Module) bool { + if !module.Enabled(ctx) { return false } return android.IsModulePreferred(module) -- cgit v1.2.3-59-g8ed1b