Android 12未満ではTwemoji使用を強制する。

This commit is contained in:
tateisu 2021-11-08 19:33:55 +09:00
parent 6eaa98f5f9
commit 9d69d263dc
2 changed files with 6 additions and 2 deletions

View File

@ -784,7 +784,9 @@ val appSettingRoot = AppSettingItem(null, SettingType.Section, R.string.app_sett
sw(PrefB.bpEmojioneShortcode, R.string.emojione_shortcode_support) {
desc = R.string.emojione_shortcode_support_desc
}
sw(PrefB.bpUseTwemoji, R.string.use_twemoji_emoji)
sw(PrefB.bpUseTwemoji, R.string.use_twemoji_emoji){
enabled = Build.VERSION.SDK_INT >= 31
}
sw(PrefB.bpKeepReactionSpace, R.string.keep_reaction_space)
}

View File

@ -1,5 +1,6 @@
package jp.juggler.subwaytooter.pref
import android.os.Build
import jp.juggler.subwaytooter.pref.impl.BooleanPref
object PrefB {
@ -321,7 +322,8 @@ object PrefB {
val bpUseTwemoji = BooleanPref(
"UseTwemoji",
false
// Android 12 以上ではデフォルトfalse
Build.VERSION.SDK_INT < 31
)
val bpKeepReactionSpace = BooleanPref(