Fix the issue for incorrect logic of "no_framework_libs"

am: 9cbe677024

Change-Id: I2daf3e97d3458250f6b075317f6bef80a1172599
This commit is contained in:
Nan Zhang
2018-03-22 05:14:30 +00:00
committed by android-build-merger

View File

@@ -234,7 +234,7 @@ func (j *Javadoc) addDeps(ctx android.BottomUpMutatorContext) {
sdkDep := decodeSdkDep(ctx, String(j.properties.Sdk_version))
if sdkDep.useDefaultLibs {
ctx.AddDependency(ctx.Module(), bootClasspathTag, config.DefaultBootclasspathLibraries...)
if Bool(j.properties.No_framework_libs) {
if !Bool(j.properties.No_framework_libs) {
ctx.AddDependency(ctx.Module(), libTag, []string{"ext", "framework"}...)
}
} else if sdkDep.useModule {