mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-03-27 17:00:19 +01:00
making some code clearer
This commit is contained in:
parent
cd851feffc
commit
f6060ac251
@ -11,10 +11,11 @@ private var cachedEmojiData: MutableList<String>? = null
|
||||
* @param context The initiating view's context.
|
||||
* @param path The path to the asset file.
|
||||
*/
|
||||
fun parseRawEmojiSpecsFile(
|
||||
context: Context, path: String
|
||||
): MutableList<String> {
|
||||
cachedEmojiData?.let { return it }
|
||||
fun parseRawEmojiSpecsFile(context: Context, path: String): MutableList<String> {
|
||||
if (cachedEmojiData != null) {
|
||||
return cachedEmojiData!!
|
||||
}
|
||||
|
||||
val emojis = mutableListOf<String>()
|
||||
var emojiEditorList: MutableList<String>? = null
|
||||
|
||||
@ -39,6 +40,7 @@ fun parseRawEmojiSpecsFile(
|
||||
if (!line.startsWith("\t")) {
|
||||
commitEmojiEditorList()
|
||||
}
|
||||
|
||||
// Assume it is a data line
|
||||
val data = line.split(";")
|
||||
if (data.size == 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user