Skip to content

Commit

Permalink
Add updates to all languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Linfye committed Oct 13, 2024
1 parent 78493ad commit 1f02cbb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/be/scri/services/FrenchKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -137,6 +140,7 @@ class FrenchKeyboardIME : SimpleKeyboardIME() {
setupCommandBarTheme(binding)
keyboardView!!.setKeyboardHolder()
keyboardView!!.mOnKeyboardActionListener = this
initializeEmojiButtons()
updateUI()
return keyboardHolder
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/be/scri/services/ItalianKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -88,6 +91,7 @@ class ItalianKeyboardIME : SimpleKeyboardIME() {
keyboardView!!.setKeyboardHolder()
setupCommandBarTheme(binding)
keyboardView!!.mOnKeyboardActionListener = this
initializeEmojiButtons()
updateUI()
return keyboardHolder
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/be/scri/services/PortugueseKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -88,6 +91,7 @@ class PortugueseKeyboardIME : SimpleKeyboardIME() {
setupCommandBarTheme(binding)
keyboardView!!.setKeyboardHolder()
keyboardView!!.mOnKeyboardActionListener = this
initializeEmojiButtons()
updateUI()
return keyboardHolder
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/be/scri/services/RussianKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -88,6 +91,7 @@ class RussianKeyboardIME : SimpleKeyboardIME() {
setupCommandBarTheme(binding)
keyboardView!!.setKeyboardHolder()
keyboardView!!.mOnKeyboardActionListener = this
initializeEmojiButtons()
updateUI()
return keyboardHolder
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/be/scri/services/SpanishKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -99,6 +102,7 @@ class SpanishKeyboardIME : SimpleKeyboardIME() {
setupCommandBarTheme(binding)
keyboardView!!.setKeyboardHolder()
keyboardView!!.mOnKeyboardActionListener = this
initializeEmojiButtons()
updateUI()
return keyboardHolder
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/be/scri/services/SwedishKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -151,6 +154,7 @@ class SwedishKeyboardIME : SimpleKeyboardIME() {
setupCommandBarTheme(binding)
keyboardView!!.setKeyboardHolder()
keyboardView!!.mOnKeyboardActionListener = this
initializeEmojiButtons()
updateUI()
return keyboardHolder
}
Expand Down

0 comments on commit 1f02cbb

Please sign in to comment.