mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Allow use of the in-app emoji picker when using system emoji.
This commit is contained in:
@@ -4,7 +4,6 @@ import androidx.annotation.MainThread
|
||||
import androidx.lifecycle.LiveData
|
||||
import androidx.lifecycle.ViewModel
|
||||
import org.signal.core.util.ThreadUtil
|
||||
import org.thoughtcrime.securesms.keyvalue.SignalStore
|
||||
import org.thoughtcrime.securesms.stickers.StickerSearchRepository
|
||||
import org.thoughtcrime.securesms.util.DefaultValueLiveData
|
||||
import org.thoughtcrime.securesms.util.RemoteConfig
|
||||
@@ -15,10 +14,7 @@ class KeyboardPagerViewModel : ViewModel() {
|
||||
private val pages: DefaultValueLiveData<Set<KeyboardPage>>
|
||||
|
||||
init {
|
||||
val startingPages: MutableSet<KeyboardPage> = KeyboardPage.values().toMutableSet()
|
||||
if (SignalStore.settings.isPreferSystemEmoji) {
|
||||
startingPages.remove(KeyboardPage.EMOJI)
|
||||
}
|
||||
val startingPages: MutableSet<KeyboardPage> = KeyboardPage.entries.toMutableSet()
|
||||
|
||||
if (!RemoteConfig.gifSearchAvailable) {
|
||||
startingPages.remove(KeyboardPage.GIF)
|
||||
|
||||
Reference in New Issue
Block a user