mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
do not re-apply input properties on rebind
commit_hash:7b839c0297b228f6a79cb3a897c7e4936111f2f8
This commit is contained in:
+16
@@ -6,6 +6,7 @@ import android.graphics.Rect
|
||||
import android.text.Editable
|
||||
import android.text.InputType
|
||||
import android.text.TextWatcher
|
||||
import android.text.method.KeyListener
|
||||
import android.util.AttributeSet
|
||||
import android.util.TypedValue
|
||||
import android.view.KeyEvent
|
||||
@@ -164,4 +165,19 @@ internal class DivInputView @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun setInputType(type: Int) {
|
||||
if (inputType == type) {
|
||||
return
|
||||
}
|
||||
|
||||
super.setInputType(type)
|
||||
}
|
||||
|
||||
override fun setKeyListener(keyListener: KeyListener?) {
|
||||
if (this.keyListener == keyListener) {
|
||||
return
|
||||
}
|
||||
super.setKeyListener(keyListener)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user