From e083c03e491d56a7f4e1032cc1543bbc745a3c1c Mon Sep 17 00:00:00 2001 From: Axel358 Date: Thu, 8 Feb 2024 14:06:15 -0500 Subject: [PATCH] fix(Notification display time): Input type --- .../cu/axel/smartdock/fragments/NotificationPreferences.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/cu/axel/smartdock/fragments/NotificationPreferences.kt b/app/src/main/java/cu/axel/smartdock/fragments/NotificationPreferences.kt index 1cc5b7f0..49c773b0 100644 --- a/app/src/main/java/cu/axel/smartdock/fragments/NotificationPreferences.kt +++ b/app/src/main/java/cu/axel/smartdock/fragments/NotificationPreferences.kt @@ -16,5 +16,11 @@ class NotificationPreferences : PreferenceFragmentCompat() { editText.inputType = InputType.TYPE_CLASS_NUMBER editText.imeOptions = EditorInfo.IME_ACTION_GO } + + val ignoredNotifications: EditTextPreference? = findPreference("blocked_notifications") + ignoredNotifications?.setOnBindEditTextListener { editText -> + editText.inputType = InputType.TYPE_CLASS_TEXT + editText.imeOptions = EditorInfo.IME_ACTION_GO + } } }