v0.7.4: increased minSDK to 9(android 2.3) from 8(android 2.2)

This commit is contained in:
Evan Debenham
2019-06-03 19:23:10 -04:00
parent c91af78699
commit d67a4bf021
15 changed files with 13 additions and 204 deletions

View File

@@ -7,7 +7,7 @@ android {
resConfigs "en_US", "cs", "tr", "ca", "ko", "pl", "it",
"eo", "ru", "zh_CN", "de", "fr", "es", "pt", "fi", "hu", "in"
//noinspection MinSdkTooLow
minSdkVersion 8
minSdkVersion 9
targetSdkVersion 28
}

View File

@@ -247,15 +247,9 @@ public class ShatteredPixelDungeon extends Game {
public void updateDisplaySize(){
boolean landscape = SPDSettings.landscape();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
instance.setRequestedOrientation(landscape ?
ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE :
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
} else {
instance.setRequestedOrientation(landscape ?
ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE :
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
instance.setRequestedOrientation(landscape ?
ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE :
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
if (view.getMeasuredWidth() == 0 || view.getMeasuredHeight() == 0)
return;

View File

@@ -89,14 +89,6 @@ public class Messages {
while (keys.hasMoreElements()) {
String key = keys.nextElement();
String value = bundle.getString(key);
if (DeviceCompat.usesISO_8859_1()) {
try {
value = new String(value.getBytes("ISO-8859-1"), "UTF-8");
} catch (Exception e) {
ShatteredPixelDungeon.reportException(e);
}
}
strings.put(key, value);
}