When webkit modifies a text field programmatically, it may change
the selection. This competes with the UI thread attempting to
set the selection in response to the IME next button and changes
made by the trackball.
One recent fix (https://android-git.corp.google.com/g/#change,26904)
sets the selection from the UI side after the IME generated click.
Unfortunately, this can be generated under other circumstances,
so this change qualifies this with mOkayForFocusNotToMatch, which
is only set after the IME next button is pressed.
The other change qualfies onTextChanged calls so that if it was
triggered by setTextAndKeepSelection, the webkit-side selection
is unchanged.
fixes http://b/issue?id=2096746
* changes:
Better event log tracking for initializeDevice() requests -- on success, record "backup_initialize" event; on failure, record "backup_transport_failure" event (and add tags to "backup_transport_failure" events that aren't associated with a particular package -- namely "(initialize)" and "(finish)").
on success, record "backup_initialize" event; on failure,
record "backup_transport_failure" event (and add tags to
"backup_transport_failure" events that aren't associated
with a particular package -- namely "(initialize)" and
"(finish)").
Merge commit 'ac18e4f238650aa4bf8b6c7540d928b0249cfd99' into eclair
* commit 'ac18e4f238650aa4bf8b6c7540d928b0249cfd99':
Update 4.xml with the native status change of breakText/measureText
Merge commit 'e67f0c9712890f3af19d1213ff4c4b049c401226' into eclair
* commit 'e67f0c9712890f3af19d1213ff4c4b049c401226':
Hack to fix issue #2125365: Sports Trivia compatability with Eclair (do not merge)
Merge commit 'd135b0937875b405a20f735189040d5cb4d2546d' into eclair
* commit 'd135b0937875b405a20f735189040d5cb4d2546d':
Fix broken build. (do not merge)
Merge commit '08905850084c501585fb0a89c346b1be6a103ca1' into eclair
* commit '08905850084c501585fb0a89c346b1be6a103ca1':
Add density support to layoutlib so that bitmap are scaled if needed.
Merge commit 'f05f92a24214f04c88ed3161a4cc684d70192cc1' into eclair
* commit 'f05f92a24214f04c88ed3161a4cc684d70192cc1':
Add density value to density enum.
Merge commit '59b30f6958f0460b59d050cde34aa863ec9b77c2' into eclair
* commit '59b30f6958f0460b59d050cde34aa863ec9b77c2':
Add a new IResourceValue that knows about the density.
Adds a mechanism to tell Paint the scaling factor its target
canvas will have, for it to compute font metrics based on the
correct font size. Only TextView uses this, but that is enough
for the large majority of apps.
This is integrated from the Eclair branch.