From da05944ba41aeb8fcd4530e76a41ef4a05d375a0 Mon Sep 17 00:00:00 2001 From: Jean-Luc Brouillet Date: Fri, 18 Jul 2014 17:35:14 -0700 Subject: Correct incorrect test for RenderScript support. Change-Id: I332c2ca02644a44dd310bcd0ac1eff62a4b8fb14 --- .../internal/project/LibraryClasspathContainerInitializer.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'eclipse') diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java index 525e2fd..8fbee40 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java @@ -338,18 +338,18 @@ public class LibraryClasspathContainerInitializer extends BaseClasspathContainer return null; } BuildToolInfo buildToolInfo = state.getBuildToolInfo(); - if (buildToolInfo != null) { + if (buildToolInfo == null) { buildToolInfo = Sdk.getCurrent().getLatestBuildTool(); if (buildToolInfo == null) { return null; } + } - File renderScriptSupportJar = RenderScriptProcessor.getSupportJar( - buildToolInfo.getLocation().getAbsolutePath()); + File renderScriptSupportJar = RenderScriptProcessor.getSupportJar( + buildToolInfo.getLocation().getAbsolutePath()); - jarFiles.add(renderScriptSupportJar); - } + jarFiles.add(renderScriptSupportJar); } // process all the libraries -- cgit v1.1