Fix PlatformTarget#compareTo(IAndroidTarget) again.
This commit is contained in:
@@ -242,7 +242,7 @@ final class PlatformTarget implements IAndroidTarget {
|
|||||||
int apiDiff = mVersion.getApiLevel() - target.getVersion().getApiLevel();
|
int apiDiff = mVersion.getApiLevel() - target.getVersion().getApiLevel();
|
||||||
|
|
||||||
if (mVersion.getCodename() != null && apiDiff == 0) {
|
if (mVersion.getCodename() != null && apiDiff == 0) {
|
||||||
if (target.getVersionName() == null) {
|
if (target.getVersion().getCodename() == null) {
|
||||||
return +1; // preview showed last
|
return +1; // preview showed last
|
||||||
}
|
}
|
||||||
return mVersion.getCodename().compareTo(target.getVersion().getCodename());
|
return mVersion.getCodename().compareTo(target.getVersion().getCodename());
|
||||||
|
|||||||
Reference in New Issue
Block a user