removing the possibly useles function resize

This commit is contained in:
tibbi
2022-01-21 22:27:10 +01:00
parent 6323103b23
commit 738bd98ac0
2 changed files with 0 additions and 57 deletions

View File

@@ -361,13 +361,6 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
mProximityThreshold *= mProximityThreshold // Square it
}
public override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
super.onSizeChanged(w, h, oldw, oldh)
mKeyboard?.resize(w, h)
// Release the buffer, if any and it will be reallocated on the next draw
mBuffer = null
}
public override fun onDraw(canvas: Canvas) {
super.onDraw(canvas)
if (mDrawPending || mBuffer == null || mKeyboardChanged) {