Prevent SDK updater dialog from showing offscreen.

This commit is contained in:
Xavier Ducrohet
2009-07-27 15:24:38 -07:00
parent 1ff4f596bf
commit bc8b16505e
2 changed files with 21 additions and 1 deletions

View File

@@ -242,6 +242,9 @@ final class PlatformTarget implements IAndroidTarget {
int apiDiff = mVersion.getApiLevel() - target.getVersion().getApiLevel();
if (mVersion.getCodename() != null && apiDiff == 0) {
if (target.getVersionName() == null) {
return +1; // preview showed last
}
return mVersion.getCodename().compareTo(target.getVersion().getCodename());
}