From a08a63e468b33ee202a74e57c9fa43a8afe75690 Mon Sep 17 00:00:00 2001 From: Dmitriy Chernysh Date: Mon, 9 Oct 2023 23:51:31 +0300 Subject: [PATCH] Simplified - getting miniKeyboardContainer from mMiniKeyboardCache[popupKey] - getting miniKeyboardView using view binding - comment removed --- .../com/simplemobiletools/keyboard/views/MyKeyboardView.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt index c2b5e42..bb49abe 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt @@ -1025,9 +1025,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut ) mMiniKeyboardCache[popupKey] = mMiniKeyboardContainer } else { - //Using 'miniKeyboardView' from cache mMiniKeyboard = mMiniKeyboardCache[popupKey]?.let(KeyboardPopupKeyboardBinding::bind)?.miniKeyboardView - ?: keyboardPopupBinding!!.miniKeyboardView } getLocationInWindow(mCoordinates)