Remove usage of OtherModuleHasProvider in dexpreopt_bootjars
Since OtherModuleHasProvider will be deprecated soon, replace it with OtherModuleProvider Test: go build ./java Change-Id: I79736e44d85bc6e8c97f08ebf783b40533a3e6ae
This commit is contained in:
parent
a4cca85eea
commit
bc114d2ff9
1 changed files with 2 additions and 2 deletions
|
@ -552,8 +552,8 @@ func DexpreoptBootJarsMutator(ctx android.BottomUpMutatorContext) {
|
|||
func addDependenciesOntoSelectedBootImageApexes(ctx android.BottomUpMutatorContext, apexes ...string) {
|
||||
psi := android.PrebuiltSelectionInfoMap{}
|
||||
ctx.VisitDirectDepsWithTag(apexContributionsMetadataDepTag, func(am android.Module) {
|
||||
if ctx.OtherModuleHasProvider(am, android.PrebuiltSelectionInfoProvider) {
|
||||
psi = ctx.OtherModuleProvider(am, android.PrebuiltSelectionInfoProvider).(android.PrebuiltSelectionInfoMap)
|
||||
if info, exists := android.OtherModuleProvider(ctx, am, android.PrebuiltSelectionInfoProvider); exists {
|
||||
psi = info
|
||||
}
|
||||
})
|
||||
for _, apex := range apexes {
|
||||
|
|
Loading…
Reference in a new issue