+1
−1
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Previously a java_sdk_library_import module did not replace the corresponding java_sdk_library module, even when it was marked as prefer=true. That is because the java_sdk_library_import had an empty set of sources. However, the stubs modules that are created by the java_sdk_library_import did override the stubs modules created by the corresponding java_sdk_library module. That created inconsistent behavior between the cases where only the prebuilt is available and both source and prebuilt are available and the prebuilt is preferred. e.g. assume a java_sdk_library/import module called SDKLIB. When both prebuilt and source modules are available for SDKLIB then even if the prebuilt is preferred then any dependencies on the SDKLIB module would use the source module. This change fixes that inconsisteny by making the array of sources non-empty. Bug: 148080325 Test: m droid && TARGET_BUILD_APPS=Camera2 m Change-Id: I25395e020393921735ada20c5492f27f1260f6c5