From 68f98cc52ff984052781de3192ebf5af3c3d0e58 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 5 Sep 2011 23:09:37 +0000 Subject: [PATCH] SDK: - fix restoring of UI selection of android sdk from settings git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8196 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/android/AndroidSdkTool.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java b/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java index 9e8185010..95509644b 100644 --- a/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java +++ b/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java @@ -293,6 +293,13 @@ public class AndroidSdkTool { private int revision; private String skins; + public AndroidTarget() { + } + + public AndroidTarget(String name) { + this.name = name; + } + public int getId() { return id; } @@ -353,5 +360,14 @@ public class AndroidSdkTool { public String toString() { return getTitle(); } + + @Override + public boolean equals(Object obj) { + if (obj instanceof String && getName() != null) { + return getName().equals(obj); + } else { + return super.equals(obj); + } + } } }