Skip to content

Commit

Permalink
Fixing detekt issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
growabeard committed Oct 21, 2024
1 parent b33b11f commit 2fd283f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/be/scri/services/SimpleKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ abstract class SimpleKeyboardIME(
}

override fun commitPeriodAfterSpace() {
if (getSharedPreferences("app_preferences", Context.MODE_PRIVATE).getBoolean("period_on_double_tap_$language", true)) {
if (getSharedPreferences("app_preferences", Context.MODE_PRIVATE)
.getBoolean("period_on_double_tap_$language", true)) {
val inputConnection = currentInputConnection ?: return
inputConnection.deleteSurroundingText(1, 0)
inputConnection.commitText(". ", 1)
Expand Down

0 comments on commit 2fd283f

Please sign in to comment.