1.Fix translation issue

This commit is contained in:
ZaneYork 2020-05-23 18:56:06 +08:00
parent a9af520e0d
commit cf48579854
2 changed files with 6 additions and 3 deletions

View File

@ -12,11 +12,14 @@ android {
applicationId "com.zane.smapiinstaller"
minSdkVersion 19
targetSdkVersion 28
versionCode 40
versionName "1.5.0"
versionCode 41
versionName "1.5.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
ndk {
abiFilters 'armeabi-v7a','arm64-v8a'
}
}
buildTypes {

View File

@ -112,7 +112,7 @@ class ConfigViewModel extends ViewModel implements ListenableObject<List<ModMani
if (null != app) {
DaoSession daoSession = app.getDaoSession();
AppConfig activeTranslator = ConfigUtils.getConfig(app, AppConfigKey.ACTIVE_TRANSLATOR, TranslateUtil.NONE);
if (StringUtils.equals(activeTranslator.getValue(), TranslateUtil.NONE)) {
if (!StringUtils.equals(activeTranslator.getValue(), TranslateUtil.NONE)) {
String translator = activeTranslator.getValue();
List<String> descriptions = StreamSupport.stream(this.modList).map(ModManifestEntry::getDescription).filter(Objects::nonNull).collect(Collectors.toList());
String language = LanguagesManager.getAppLanguage(app).getLanguage();