Finish v1.32.04(344)

This commit is contained in:
2023-03-08 17:20:06 +01:00
2 changed files with 13 additions and 10 deletions

View File

@@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
android { android {
def appVersionCode = 343 def appVersionCode = 344
def appVersionName = '1.32.03' def appVersionName = '1.32.04'
signingConfigs { signingConfigs {
release { release {

View File

@@ -413,16 +413,19 @@ public class SettingsManager {
StbGestSetup value = Stream.of(stbGestSetupList) StbGestSetup value = Stream.of(stbGestSetupList)
.filter(x -> x.getSection().equalsIgnoreCase(section) && x.getKeySection().equalsIgnoreCase(keySectionName)) .filter(x -> x.getSection().equalsIgnoreCase(section) && x.getKeySection().equalsIgnoreCase(keySectionName))
.findFirstOrElse(new StbGestSetup()); .findFirstOrElse(null);
if(value != null) {
if (clazz == String.class) { if (clazz == String.class) {
return clazz.cast(value.getValue()); return clazz.cast(value.getValue());
} else if (clazz == Boolean.class) { } else if (clazz == Boolean.class) {
return clazz.cast("S".equalsIgnoreCase(value.getValue())); return clazz.cast("S".equalsIgnoreCase(value.getValue()));
} else if (clazz == Integer.class && value.getValue() != null) { } else if (clazz == Integer.class && value.getValue() != null) {
return clazz.cast(Integer.parseInt(value.getValue())); return clazz.cast(Integer.parseInt(value.getValue()));
} else return defaultValue; }
}
return defaultValue;
} }
} }