|
|
|
@ -6,8 +6,8 @@ import android.util.Pair |
|
|
|
|
import androidx.annotation.DrawableRes |
|
|
|
|
import androidx.annotation.StringRes |
|
|
|
|
import androidx.annotation.VisibleForTesting |
|
|
|
|
import androidx.emoji.text.EmojiCompat; |
|
|
|
|
import androidx.emoji.bundled.BundledEmojiCompatConfig; |
|
|
|
|
import androidx.emoji.text.EmojiCompat |
|
|
|
|
import androidx.emoji.bundled.BundledEmojiCompatConfig |
|
|
|
|
import com.keylesspalace.tusky.R |
|
|
|
|
import de.c1710.filemojicompat.FileEmojiCompatConfig |
|
|
|
|
import io.reactivex.Observable |
|
|
|
@ -67,7 +67,7 @@ class EmojiCompatFont( |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun getConfig(context: Context): FileEmojiCompatConfig { |
|
|
|
|
fun getConfig(context: Context): EmojiCompat.Config { |
|
|
|
|
if(this === SYSTEM_DEFAULT) |
|
|
|
|
return BundledEmojiCompatConfig(context); |
|
|
|
|
return FileEmojiCompatConfig(context, getLatestFontFile(context)) |
|
|
|
|