From 2fd283f9aa3f74f1f0bc0d2f8c3864b8bdbedf03 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 21 Oct 2024 14:45:41 -0400 Subject: [PATCH] Fixing detekt issue. --- app/src/main/java/be/scri/services/SimpleKeyboardIME.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/be/scri/services/SimpleKeyboardIME.kt b/app/src/main/java/be/scri/services/SimpleKeyboardIME.kt index c7fa7177..caa820b6 100644 --- a/app/src/main/java/be/scri/services/SimpleKeyboardIME.kt +++ b/app/src/main/java/be/scri/services/SimpleKeyboardIME.kt @@ -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)