- 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
3.0
nor..67 14 years ago
parent 86124b9a04
commit 68f98cc52f
  1. 16
      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);
}
}
}
}

Loading…
Cancel
Save