Commit Graph

2167 Commits

Author SHA1 Message Date
Dianne Hackborn
2c2ab5864f Fix issue #5260129: Suggestion strip in Talk app not showing all the time 2011-09-19 13:59:39 -07:00
Jeff Brown
b0c71eb9f5 Can't stop the fling!
Bug: 5335420

Fixed a bug in VelocityTracker where the output velocity was
not being set to zero when not available.

Added a condition to ensure that the velocity is at least
the minimum fling velocity before continuing.  If not, then
the user is trying to stop the fling and scroll more precisely.

Change-Id: I36634b0c3f7a9a09cf20c33f71d41163a8e33eed
2011-09-16 21:43:58 -07:00
Dianne Hackborn
df82905cf3 Merge "Update the public APIs for finding views by text to optionally use content description." 2011-09-14 22:33:54 -07:00
Svetoslav Ganov
ea515aeafa Update the public APIs for finding views by text to optionally use content description.
1. Added flags to the search method to specify whether to match text or
   content description or both.

2. Added test case for the seach by content description.

3. Updated the code in AccessibilityManager service to reflect the latest
   changes there so test automation service works - this is the fake
   service used for UI automation.

Change-Id: I14a6779a920ff0430e78947ea5aaf876c2e66076
2011-09-14 19:40:33 -07:00
Svetoslav Ganov
de16e00f6d Merge "TimePicker CTS test failing." 2011-09-14 19:07:23 -07:00
Svetoslav Ganov
11c9132818 TimePicker CTS test failing.
TimePicker code for setting the IME options was not taking into
account the old style of the UI where the AmPm spinner can be
null.

bug:5318844

Change-Id: I58b1781ef95398d11ecf0ca5bb49817cbba97b54
2011-09-14 18:35:48 -07:00
Adam Powell
149cecdc78 Merge "Bug 5151927 - Monkeys should not play with detached lists." 2011-09-14 14:54:23 -07:00
Adam Powell
a2b986e72c Bug 5151927 - Monkeys should not play with detached lists.
Don't process ListView key events while detached from a window.

Change-Id: Ibf85e081887d47834a467f9fd2cb6a1e39b4857e
2011-09-14 14:21:33 -07:00
Gilles Debunne
bd4016e9c8 Bug 5295607: IOOB problems in Suggestions
The start and end of the suggestion span were cached, where as
they should be retrieved when the user clicks since text may have
changed in the meantime.

Change-Id: Iab47f9969d538d8213a8c5b76b4b7ace8dc9428e
2011-09-14 10:10:49 -07:00
Adam Powell
5c3a77c0ff Un-force fading edges in ListPopupWindows.
Change-Id: Iefb1f64b1f8927fd3c29a8d448a1517afac1ffe1
2011-09-13 21:43:29 -07:00
Adam Powell
1e83b3e6ab Fix bug 5312352 - ListView modal multi-select mode bugs
When the provided callback returned false for creating the mode, the
item was still getting checked and the bar was flickering. Don't do
that.

Change-Id: I384962742edeac0c43aec6f7898bd50dab064738
2011-09-13 18:13:31 -07:00
Fabrice Di Meglio
d309a0434a Merge "Fix bug #5282141 ScrollView overscroll should not generate invalidations when not needed (ANR textview redraws constantly when touched)" 2011-09-13 15:35:06 -07:00
Fabrice Di Meglio
e9dbef85d3 Fix bug #5282141 ScrollView overscroll should not generate invalidations when not needed (ANR textview redraws constantly when touched)
- check if the overscroll range is not 0
- check if we are in the correct overscroll mode
- also udpate HorizontalScrollView the same way

Change-Id: I0bb37f9813a5871eb856914786db5c06de59e4d3
2011-09-13 13:47:20 -07:00
Adam Powell
ac126be503 Merge "Fix bug 5226097 - App compatibility issues around new ListView fixes" 2011-09-13 13:40:07 -07:00
Adam Powell
247a0f0a16 Fix bug 5226097 - App compatibility issues around new ListView fixes
Only dispatch change events when headers/footers change if we have an
adapter.

Change-Id: Ic5d68ea214196771d76f6a88186aaf5f8ed4c4cf
2011-09-13 13:11:29 -07:00
Gilles Debunne
18b4311922 Merge "Bug 5281947: add to dictionnary option promoted in suggestions." 2011-09-13 12:38:03 -07:00
Jeff Sharkey
883adec771 Merge "Handle data changed during FlingRunnable." 2011-09-12 18:28:15 -07:00
Jeff Sharkey
7f2202b0bd Handle data changed during FlingRunnable.
Bug: 5297171
Change-Id: I733ed978bb1d237c992f5d003b212baeac102a3d
2011-09-12 18:20:56 -07:00
Dianne Hackborn
f0ec2dd327 Merge "Fix problems where we were allocating TypedArray when not needed." 2011-09-12 17:52:54 -07:00
Svetoslav Ganov
8a6d732360 Merge "CheckedTextView is missing onInitializeAccessibilityNodeInfo() implementation." 2011-09-12 17:05:44 -07:00
Dianne Hackborn
ab0f485e64 Fix problems where we were allocating TypedArray when not needed.
Fixes up some recycling of TypedArray objects to reduce the
number we need to allocate during inflation etc.

Change-Id: I948dccc052997779001eaa99db2a710b04be01ae
2011-09-12 17:04:32 -07:00
Svetoslav Ganov
bd5c9768c4 Merge "Adding accessibility delegate mechanism for backwards compatibility support." 2011-09-12 16:58:13 -07:00
Svetoslav Ganov
34ffaabc30 CheckedTextView is missing onInitializeAccessibilityNodeInfo() implementation.
bug:5160586

Change-Id: I3861cfc398566805cdf3c551cbf20dc7b5c208d9
2011-09-12 16:19:37 -07:00
Svetoslav Ganov
031d9c1389 Adding accessibility delegate mechanism for backwards compatibility support.
1. Added an AccessibilityDelegate class in View which can be set by
   a client that wants to cutomize accessibility behavior via
   composition as opposed to inheritance. Insead overriding a new method in
   View thus being bound to the API version that introduced this
   method a developer can conditionally inject the accessibility
   customization if the platform API version is heigh enough. The
   developer will have to override the method of interest of the
   delegate. The default implementation of the delegate methods is
   the same as that of View in the case that there is no delegate
   set. If a delegate is set calling an accessibility related method
   on View will be handed off to the corresponsing method of the
   delegate.

bug:5259555

Change-Id: I00e750e22e5e7164a1b571cb3d12ecaf4ab93db4
2011-09-12 15:42:19 -07:00
Gilles Debunne
fc7a8081f8 Merge "If suggestion span is not enable, removes the suggestion span (so no underline is displayed), and do not try to display the suggestion pop-up." 2011-09-12 13:30:26 -07:00
Jeff Brown
6515f50d0c Merge "Handle DOWN/MOVE/UP gestures with fling. Bug: 5265814" 2011-09-12 11:26:58 -07:00
Luca Zanolin
e076045f10 If suggestion span is not enable, removes the suggestion span (so no underline is displayed),
and do not try to display the suggestion pop-up.

Bug: 5267093

Change-Id: Ia6f2596d0c62885ef9affeb478e00d3b92d76aac
2011-09-12 18:07:31 +01:00
Jeff Brown
78f6e63031 Handle DOWN/MOVE/UP gestures with fling.
Bug: 5265814

When MOVE events are batched, a ListView may not receive only
one MOVE event followed immediately by an UP in the case of
a quick fling.  Unfortunately, the old code relied on there
being at least one additional MOVE event following the first
in order to really scroll or fling.

This change extracts common code from onTouchEvent to
handle scrolls as soon as they are started if there is additional
remaining motion beyond the initial touch slop (taken care of by
mMotionCorrection).

Change-Id: I8c8f03f580bfba96aa69cf111d245ba7fd3b4c2a
2011-09-09 17:15:31 -07:00
Gilles Debunne
c9fd978da6 Bug 5281947: add to dictionnary option promoted in suggestions.
When several SuggestionSpans are available at a given position, their
content are merged, in creation time order.

As a result, the IME's suggestions are picked before the spell check, and
no add to dictionnary option is created.

This CL modifies the comparator to make easy correction spans appear first
(Voice IME), then misspelled words and then regular suggestions.

Also avoids the creation of a new comparator and length hash map on every display.

Change-Id: I1f9f031a6fdcbbc09f248a192b83051092765f8e
2011-09-09 17:01:31 -07:00
Gilles Debunne
2bfc75a6d9 Merge "Bug 5255124: Move cursor to the end of a word after correction popup alternates selection" 2011-09-09 16:01:08 -07:00
Gilles Debunne
4f2b0dc552 Merge "Bug 5278456: text highlight color depends on the type of suggestion spans." 2011-09-09 15:52:09 -07:00
Gilles Debunne
1a87ba4636 Bug 5255124: Move cursor to the end of a word after correction popup alternates selection
Change-Id: Idd3edc72edf864f256df173bcf643163192ecbde
2011-09-09 15:02:10 -07:00
Svetoslav Ganov
99e109915e Merge "The time and data pickers did not support IME editor action correctly." 2011-09-09 11:24:24 -07:00
Svetoslav Ganov
5b60d38a8a Merge "Update the sharing UI according to latest UX specs." 2011-09-09 11:18:40 -07:00
Michael Jurka
6c0d41a4ea Merge "Fix FrameLayout padding when foreground drawable is set" 2011-09-08 20:56:35 -07:00
Michael Jurka
02473da2b0 Fix FrameLayout padding when foreground drawable is set
The padding of the foreground drawable was being added to the padding that already existed, even if the foreground drawable was drawing within the padded region. This was preventing having a foreground drawable and a background drawable set on a FrameLayout that overlapped perfectly.

Change-Id: I355ff9323fb49afc5816f47ec9e257e0ff849861
2011-09-08 20:39:16 -07:00
Svetoslav Ganov
a53efe9923 The time and data pickers did not support IME editor action correctly.
1. Updated TextView to traverse all focusable items. It was searching focus
   down and up and was missing right and left focusabled. Updated the focus
   seach to use FOCUS_FORWARD and FOCUS_BACKWARD - now all focusable views
   are visited.

2. TimePicker and DatePicker were not specifying the IME options for
   the next and done editor actions.

bug:5264046

Change-Id: Ief80863fc312582f2f76928bf6e915f620c427e5
2011-09-08 20:19:48 -07:00
Gilles Debunne
fa4e2d994b Bug 5278456: text highlight color depends on the type of suggestion spans.
Change-Id: I76ac02b7688a297c0e83d593f446a4cf2ee36015
2011-09-08 18:35:54 -07:00
Fabrice Di Meglio
2295cc77c7 Merge "Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field" 2011-09-08 18:27:29 -07:00
Svetoslav Ganov
f2e7540021 Update the sharing UI according to latest UX specs.
bug:3362473

Change-Id: Ic302c289e28061f53446f98e5b97573d57d9cfb8
2011-09-08 18:19:13 -07:00
Fabrice Di Meglio
e4231461f4 Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field
Part 2

- use "textview_error_popup_default_width" as a dimension resource instead of a basic constant

Change-Id: Ieb89fc416105716ab491749a82390a7e784b1755
2011-09-08 18:15:50 -07:00
Fabrice Di Meglio
0669577b13 Merge "Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field" 2011-09-08 17:35:01 -07:00
Fabrice Di Meglio
33438be008 Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field
- cap the popup to 240 (Validated with UX team)

Change-Id: I2923825a19b7c79fa0d1233300f42e10bdda8df7
2011-09-08 17:19:04 -07:00
Gilles Debunne
15208ac500 Merge "No vibration when long pressing in the empty part of an EditText" 2011-09-08 11:18:53 -07:00
Gilles Debunne
df1324c3cf Merge "Longpressing in landscape correctly starts selection mode." 2011-09-08 11:18:36 -07:00
Gilles Debunne
0c4f8ec6d3 Merge "Updated text selection color. As in 133272" 2011-09-08 11:18:23 -07:00
Steve Block
703bde8ca5 Merge "Add FrameLayout.getMeasureAllChildren()" 2011-09-08 10:38:15 -07:00
satok
76866208f8 Merge "Send onViewClicked in the extract mode" 2011-09-07 19:50:54 -07:00
satok
a67a3cfc7c Send onViewClicked in the extract mode
Bug: 5257838
Change-Id: I16547aab86812f2db45deb879ad887dc38968164
2011-09-08 11:46:35 +09:00
Svetoslav Ganov
aacbf9111b Merge "Not visible view should not be announced or interacted with." 2011-09-07 18:24:25 -07:00