OSDN Git Service

Add support for maxlength text fields to WebViewInputConnection.
authorGeorge Mount <mount@google.com>
Tue, 28 Feb 2012 23:19:33 +0000 (15:19 -0800)
committerGeorge Mount <mount@google.com>
Tue, 28 Feb 2012 23:27:26 +0000 (15:27 -0800)
commit6012edec287cf081a1aacafd55aac1adfbd90b19
tree66204877e2fd72d93e2ad34e5ab372ef53d4d372
parentcbd01c31bfa40f4e1b8df9d0d6f57b10aebc5fe9
Add support for maxlength text fields to WebViewInputConnection.

 Bug 6083776
 While WebKit limits the length of a field with maxlength, the
 InputConnection can get out of sync with it when it doesn't
 recognize that the characters haven't been changed. Adds
 maximum field length to WebViewInputConnection to limit the
 characters typed.
 WebKit Change: Ie02f82a3f5b3527c378938d93bac2dece802af26

Change-Id: I135871db7809e8dc28a3ad8d3aa852976a274555
core/java/android/webkit/WebView.java
core/java/android/webkit/WebViewCore.java