Skip to content

Commit 409e3f4

Browse files
committed
Moved setKeyboardHolder before setKeyboard in order to properly manage toolbar visibility
1 parent d8dead1 commit 409e3f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
4646
override fun onCreateInputView(): View {
4747
val keyboardHolder = layoutInflater.inflate(R.layout.keyboard_view_keyboard, null)
4848
keyboardView = keyboardHolder.keyboard_view as MyKeyboardView
49-
keyboardView!!.setKeyboard(keyboard!!)
5049
keyboardView!!.setKeyboardHolder(keyboardHolder.keyboard_holder)
50+
keyboardView!!.setKeyboard(keyboard!!)
5151
keyboardView!!.setEditorInfo(currentInputEditorInfo)
5252
keyboardView!!.mOnKeyboardActionListener = this
5353
return keyboardHolder!!

app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
269269
invalidateAllKeys()
270270
computeProximityThreshold(keyboard)
271271
mMiniKeyboardCache.clear()
272+
mToolbarHolder?.beInvisibleIf(context.isDeviceLocked)
272273

273274
accessHelper = AccessHelper(this, mKeyboard?.mKeys.orEmpty())
274275
ViewCompat.setAccessibilityDelegate(this, accessHelper)

0 commit comments

Comments
 (0)