1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Set random emoji when creating a new page (#605)

This commit is contained in:
Evgenii Kozlov 2020-07-28 17:42:37 +02:00 committed by GitHub
parent ab417e6182
commit 670af5cdec
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 187 additions and 22 deletions

View file

@ -0,0 +1,24 @@
package com.agileburo.anytype.emojifier.data
import com.agileburo.anytype.domain.icon.DocumentEmojiIconProvider
class DefaultDocumentEmojiIconProvider : DocumentEmojiIconProvider {
companion object {
val DOCUMENT_SET = listOf(
"🌳", "", "🧬", "🎈", "🎓",
"💡", "🎒", "🚀", "🤖", "📚",
"🍎", "🏡", "🤝", "😍", "",
"🔥", "💥", "", "", "📌",
"🚩", "🦉", "📮", "📄", "🖌",
"🗳", "", "🔑", "🎉", "🗃",
"🔖", "🧠", "👁", "🎗", "🎲",
"🧩", "🚲", "", "🔶", "🌍",
"🏕", "🧳", "🌵", "🚗", "🚂",
"🖼", "", "🥁", "🚠", "🛫",
"🏔", "🏗", "🛠", "🔍", "🕹"
)
}
override fun random(): String = DOCUMENT_SET.random()
}