aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins
diff options
context:
space:
mode:
authorJean-Luc Brouillet <jeanluc@google.com>2014-07-18 17:35:14 -0700
committerJean-Luc Brouillet <jeanluc@google.com>2014-07-18 17:35:14 -0700
commitda05944ba41aeb8fcd4530e76a41ef4a05d375a0 (patch)
tree06f18e7acd64fb97a84b530f377e33abcb7d634f /eclipse/plugins
parentd1dd8ee1e85f60569ddf6ebc7fe1cbde7ebb6f38 (diff)
downloadsdk-da05944ba41aeb8fcd4530e76a41ef4a05d375a0.tar.gz
sdk-da05944ba41aeb8fcd4530e76a41ef4a05d375a0.tar.bz2
sdk-da05944ba41aeb8fcd4530e76a41ef4a05d375a0.zip
Correct incorrect test for RenderScript support.
Change-Id: I332c2ca02644a44dd310bcd0ac1eff62a4b8fb14
Diffstat (limited to 'eclipse/plugins')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java10
1 files changed, 5 insertions, 5 deletions
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 525e2fd0d..8fbee4089 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