diff --git a/app/src/main/java/be/scri/services/FrenchKeyboardIME.kt b/app/src/main/java/be/scri/services/FrenchKeyboardIME.kt index 822ac9d5..ab289a2c 100644 --- a/app/src/main/java/be/scri/services/FrenchKeyboardIME.kt +++ b/app/src/main/java/be/scri/services/FrenchKeyboardIME.kt @@ -73,6 +73,9 @@ class FrenchKeyboardIME : SimpleKeyboardIME() { val isSystemDarkMode = currentNightMode == Configuration.UI_MODE_NIGHT_YES val isUserDarkMode = sharedPref.getBoolean("dark_mode", isSystemDarkMode) updateEnterKeyColor(isUserDarkMode) + initializeEmojiButtons() + val isAutoSuggestEnabled = sharedPref.getBoolean("emoji_suggestions_French", true) + updateButtonVisibility(isAutoSuggestEnabled) setupIdleView() super.onStartInputView(editorInfo, restarting) setupCommandBarTheme(binding) @@ -137,6 +140,7 @@ class FrenchKeyboardIME : SimpleKeyboardIME() { setupCommandBarTheme(binding) keyboardView!!.setKeyboardHolder() keyboardView!!.mOnKeyboardActionListener = this + initializeEmojiButtons() updateUI() return keyboardHolder } diff --git a/app/src/main/java/be/scri/services/ItalianKeyboardIME.kt b/app/src/main/java/be/scri/services/ItalianKeyboardIME.kt index afa4bff3..0a8ece04 100644 --- a/app/src/main/java/be/scri/services/ItalianKeyboardIME.kt +++ b/app/src/main/java/be/scri/services/ItalianKeyboardIME.kt @@ -61,6 +61,9 @@ class ItalianKeyboardIME : SimpleKeyboardIME() { val isSystemDarkMode = currentNightMode == Configuration.UI_MODE_NIGHT_YES val isUserDarkMode = sharedPref.getBoolean("dark_mode", isSystemDarkMode) updateEnterKeyColor(isUserDarkMode) + initializeEmojiButtons() + val isAutoSuggestEnabled = sharedPref.getBoolean("emoji_suggestions_Italian", true) + updateButtonVisibility(isAutoSuggestEnabled) setupIdleView() super.onStartInputView(editorInfo, restarting) setupCommandBarTheme(binding) @@ -88,6 +91,7 @@ class ItalianKeyboardIME : SimpleKeyboardIME() { keyboardView!!.setKeyboardHolder() setupCommandBarTheme(binding) keyboardView!!.mOnKeyboardActionListener = this + initializeEmojiButtons() updateUI() return keyboardHolder } diff --git a/app/src/main/java/be/scri/services/PortugueseKeyboardIME.kt b/app/src/main/java/be/scri/services/PortugueseKeyboardIME.kt index 619e3cb8..78d25cee 100644 --- a/app/src/main/java/be/scri/services/PortugueseKeyboardIME.kt +++ b/app/src/main/java/be/scri/services/PortugueseKeyboardIME.kt @@ -66,6 +66,9 @@ class PortugueseKeyboardIME : SimpleKeyboardIME() { val isSystemDarkMode = currentNightMode == Configuration.UI_MODE_NIGHT_YES val isUserDarkMode = sharedPref.getBoolean("dark_mode", isSystemDarkMode) updateEnterKeyColor(isUserDarkMode) + initializeEmojiButtons() + val isAutoSuggestEnabled = sharedPref.getBoolean("emoji_suggestions_Portuguese", true) + updateButtonVisibility(isAutoSuggestEnabled) setupIdleView() super.onStartInputView(editorInfo, restarting) setupCommandBarTheme(binding) @@ -88,6 +91,7 @@ class PortugueseKeyboardIME : SimpleKeyboardIME() { setupCommandBarTheme(binding) keyboardView!!.setKeyboardHolder() keyboardView!!.mOnKeyboardActionListener = this + initializeEmojiButtons() updateUI() return keyboardHolder } diff --git a/app/src/main/java/be/scri/services/RussianKeyboardIME.kt b/app/src/main/java/be/scri/services/RussianKeyboardIME.kt index 8ad05eaf..2416f6f1 100644 --- a/app/src/main/java/be/scri/services/RussianKeyboardIME.kt +++ b/app/src/main/java/be/scri/services/RussianKeyboardIME.kt @@ -61,6 +61,9 @@ class RussianKeyboardIME : SimpleKeyboardIME() { val isSystemDarkMode = currentNightMode == Configuration.UI_MODE_NIGHT_YES val isUserDarkMode = sharedPref.getBoolean("dark_mode", isSystemDarkMode) updateEnterKeyColor(isUserDarkMode) + initializeEmojiButtons() + val isAutoSuggestEnabled = sharedPref.getBoolean("emoji_suggestions_Russian", true) + updateButtonVisibility(isAutoSuggestEnabled) setupIdleView() super.onStartInputView(editorInfo, restarting) setupCommandBarTheme(binding) @@ -88,6 +91,7 @@ class RussianKeyboardIME : SimpleKeyboardIME() { setupCommandBarTheme(binding) keyboardView!!.setKeyboardHolder() keyboardView!!.mOnKeyboardActionListener = this + initializeEmojiButtons() updateUI() return keyboardHolder } diff --git a/app/src/main/java/be/scri/services/SpanishKeyboardIME.kt b/app/src/main/java/be/scri/services/SpanishKeyboardIME.kt index 6a4f4141..5b0b9a86 100644 --- a/app/src/main/java/be/scri/services/SpanishKeyboardIME.kt +++ b/app/src/main/java/be/scri/services/SpanishKeyboardIME.kt @@ -77,6 +77,9 @@ class SpanishKeyboardIME : SimpleKeyboardIME() { val isSystemDarkMode = currentNightMode == Configuration.UI_MODE_NIGHT_YES val isUserDarkMode = sharedPref.getBoolean("dark_mode", isSystemDarkMode) updateEnterKeyColor(isUserDarkMode) + initializeEmojiButtons() + val isAutoSuggestEnabled = sharedPref.getBoolean("emoji_suggestions_Spanish", true) + updateButtonVisibility(isAutoSuggestEnabled) setupIdleView() super.onStartInputView(editorInfo, restarting) setupCommandBarTheme(binding) @@ -99,6 +102,7 @@ class SpanishKeyboardIME : SimpleKeyboardIME() { setupCommandBarTheme(binding) keyboardView!!.setKeyboardHolder() keyboardView!!.mOnKeyboardActionListener = this + initializeEmojiButtons() updateUI() return keyboardHolder } diff --git a/app/src/main/java/be/scri/services/SwedishKeyboardIME.kt b/app/src/main/java/be/scri/services/SwedishKeyboardIME.kt index 981ca0ca..2f9427a7 100644 --- a/app/src/main/java/be/scri/services/SwedishKeyboardIME.kt +++ b/app/src/main/java/be/scri/services/SwedishKeyboardIME.kt @@ -79,6 +79,9 @@ class SwedishKeyboardIME : SimpleKeyboardIME() { val isSystemDarkMode = currentNightMode == Configuration.UI_MODE_NIGHT_YES val isUserDarkMode = sharedPref.getBoolean("dark_mode", isSystemDarkMode) updateEnterKeyColor(isUserDarkMode) + initializeEmojiButtons() + val isAutoSuggestEnabled = sharedPref.getBoolean("emoji_suggestions_Swedish", true) + updateButtonVisibility(isAutoSuggestEnabled) setupIdleView() super.onStartInputView(editorInfo, restarting) setupCommandBarTheme(binding) @@ -151,6 +154,7 @@ class SwedishKeyboardIME : SimpleKeyboardIME() { setupCommandBarTheme(binding) keyboardView!!.setKeyboardHolder() keyboardView!!.mOnKeyboardActionListener = this + initializeEmojiButtons() updateUI() return keyboardHolder }