Skip to content

Commit

Permalink
Fixed issue when opening keyboard without any emotes added
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakota committed Apr 23, 2021
1 parent b773fd4 commit 31474e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class StickerInputMethod : InputMethodService() {

val emotes = if (packFile.exists()) {
val pack = JSONObject(packFile.readText(Charsets.UTF_8))
pack.getJSONArray("emotes")
if (pack.has("emotes")) pack.getJSONArray("emotes") else JSONArray()
} else JSONArray()

emoteList.adapter = PackAdapter(applicationContext, emotes, this::commitContent)
Expand Down

0 comments on commit 31474e2

Please sign in to comment.