Make phones with sdk >=9 report they use SDK 8.

This commit is contained in:
Guillaume Beraudo 2011-02-14 15:58:09 +01:00
parent e0399ec640
commit 976ea187f2

View file

@ -26,8 +26,8 @@ import android.os.Build;
*/
public class Version {
private static final int buildVersion =
Integer.parseInt(Build.VERSION.SDK);
private static final int buildVersion = Integer.parseInt(Build.VERSION.SDK) >= 9?
8 : Integer.parseInt(Build.VERSION.SDK); // Force versions above 9 to 8
// 7; // 2.1
public static final boolean sdkAbove(int value) {