diff options
author | 2024-07-29 12:24:25 -0700 | |
---|---|---|
committer | 2024-07-29 12:24:25 -0700 | |
commit | bf1d92ad20340347a5e7775d4760d04fe2a5e9af (patch) | |
tree | 252247151afac12507e0bcf944c8194f2530d9c8 /apex/builder.go | |
parent | 2487d8daf4074c5f6e8db0a48eb9226f7bbfab9c (diff) |
Cleanup configurable getter usages
You don't have to call module.ConfigurableEvaluator(ctx) if ctx is
already a ModuleContext, you only need to do that for more restricted
contexts like SingletonContext.
Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I7612290d43dae7decfae283a341882d9016c98a3
Diffstat (limited to 'apex/builder.go')
-rw-r--r-- | apex/builder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apex/builder.go b/apex/builder.go index 6f645ab04..bfe16922d 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -704,7 +704,7 @@ func (a *apexBundle) buildApex(ctx android.ModuleContext) { optFlags = append(optFlags, "--override_apk_package_name "+manifestPackageName) } - androidManifest := a.properties.AndroidManifest.GetOrDefault(a.ConfigurableEvaluator(ctx), "") + androidManifest := a.properties.AndroidManifest.GetOrDefault(ctx, "") if androidManifest != "" { androidManifestFile := android.PathForModuleSrc(ctx, androidManifest) @@ -1196,7 +1196,7 @@ func (a *apexBundle) buildCannedFsConfig(ctx android.ModuleContext, defaultReadO } // Custom fs_config is "appended" to the last so that entries from the file are preferred // over default ones set above. - customFsConfig := a.properties.Canned_fs_config.GetOrDefault(a.ConfigurableEvaluator(ctx), "") + customFsConfig := a.properties.Canned_fs_config.GetOrDefault(ctx, "") if customFsConfig != "" { cmd.Text("cat").Input(android.PathForModuleSrc(ctx, customFsConfig)) } |