diff --git a/core/src/main/java/info/nightscout/androidaps/utils/ui/NumberPicker.kt b/core/src/main/java/info/nightscout/androidaps/utils/ui/NumberPicker.kt index ad0a760456..476ad03c57 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/ui/NumberPicker.kt +++ b/core/src/main/java/info/nightscout/androidaps/utils/ui/NumberPicker.kt @@ -146,7 +146,7 @@ open class NumberPicker(context: Context, attrs: AttributeSet? = null) : LinearL .getSystemService(Context.ACCESSIBILITY_SERVICE) as AccessibilityManager if (manager.isEnabled) { val valueDescription = formatter?.format(currentValue) - AccessibilityEvent.obtain().apply { + AccessibilityEvent().apply { eventType = AccessibilityEvent.TYPE_ANNOUNCEMENT className = javaClass.name packageName = context.packageName