load app using apploader -- no more black screen on app load

This commit is contained in:
minjaesong
2017-08-01 23:55:48 +09:00
parent 5c2b1e7586
commit aa238eb65c
19 changed files with 668 additions and 88 deletions

View File

@@ -14,6 +14,8 @@ object Lang {
* Get record by its STRING_ID
*
* HashMap<"$key_$language", Value>
*
* E.g. langpack["MENU_LANGUAGE_THIS_fiFI"]
*/
val langpack = HashMap<String, String>()
private val FALLBACK_LANG_CODE = "en"
@@ -55,9 +57,10 @@ object Lang {
if (!it.name.startsWith("Polyglot") && it.name.endsWith(".json")) {
processRegularLangfile(it, lang)
}
else {
else if (it.name.startsWith("Polyglot") && it.name.endsWith(".json")) {
processPolyglotLangFile(it, lang)
}
// else, ignore
}
}