Commit Graph

4091 Commits

Author SHA1 Message Date
Jean Chalard
65e1772d6b am 424054ba: am 6a1e32ef: Merge "Don\'t change the text in reaction to a user dict add" into klp-dev
* commit '424054ba621738452b0bae69dcd6a8372ca5c273':
  Don't change the text in reaction to a user dict add
2013-09-25 08:17:41 -07:00
Jean Chalard
6a1e32efb6 Merge "Don't change the text in reaction to a user dict add" into klp-dev 2013-09-25 07:50:15 +00:00
Adam Powell
51d6615af4 am 8dcc0e7d: am 7ef9b612: Merge "Fix monkey bugs in ListView" into klp-dev
* commit '8dcc0e7dfb05a50ca306942037015244060862b8':
  Fix monkey bugs in ListView
2013-09-24 15:44:01 -07:00
Adam Powell
7ef9b61241 Merge "Fix monkey bugs in ListView" into klp-dev 2013-09-24 22:38:37 +00:00
Adam Powell
31986b5b69 Fix monkey bugs in ListView
* Don't run item click listeners as part of touch mode reset if the
  ListView is being detached from its window. Some calling code makes
  assumptions around this.

* Remove redundant state tracking for window attachment from
  AbsListView now that we have View#isAttachedToWindow(). The timing
  of View's mechanism is closer to what we want here anyway -
  subclasses calling super.onDetachedFromWindow() as the first line of
  an overridden onDetachedFromWindow() method will see the window as
  being in a detached state while the rest of the method runs,
  resulting in the behavior described in the first bullet point above.

Bug 10834897

Change-Id: Ic9fdff3c5cfc4996361a7fb1a863547b4d1a2c9c
2013-09-24 15:20:07 -07:00
Alan Viverette
e3b71bc910 am 4e10483d: am 6bc7cacf: Merge "Fix NPE in PopupMenu.getDragToOpenListener()" into klp-dev
* commit '4e10483de3a28041e1108633752581cb0fc77483':
  Fix NPE in PopupMenu.getDragToOpenListener()
2013-09-24 14:38:51 -07:00
Alan Viverette
6bc7cacfc8 Merge "Fix NPE in PopupMenu.getDragToOpenListener()" into klp-dev 2013-09-24 21:28:56 +00:00
Alan Viverette
5fbd62b399 am 36055c33: am e1cb9acc: Merge "Update AdapterView.performItemClick() documentation" into klp-dev
* commit '36055c3396051e1f1e0257b9e98c0b9b5ac16080':
  Update AdapterView.performItemClick() documentation
2013-09-24 11:38:18 -07:00
Alan Viverette
e1cb9accf2 Merge "Update AdapterView.performItemClick() documentation" into klp-dev 2013-09-24 18:28:01 +00:00
Alan Viverette
99d72497d3 Fix NPE in PopupMenu.getDragToOpenListener()
BUG: 10912382
Change-Id: I206e697b4781c4d03ebc01aa675511d89c1656af
2013-09-24 11:27:08 -07:00
Alan Viverette
7f67d7206a am 8ac0d137: am 564c45b9: Merge "Fix number picker vertical scroll computations" into klp-dev
* commit '8ac0d137ba11958312e25225d8d0776aad71b022':
  Fix number picker vertical scroll computations
2013-09-18 16:42:15 -07:00
Alan Viverette
fd63917ed3 Fix number picker vertical scroll computations
BUG: 8692209
Change-Id: I332d3f1c00e1aacad11f8af172974741b28843ea
2013-09-18 11:20:38 -07:00
Alan Viverette
c03383df07 am 56a87f8c: am c255a711: Merge "Ensure WeeksAdapter calls notifyDataSetChanged when needed" into klp-dev
* commit '56a87f8c07a98308a9a9c76d38ae7389168ae280':
  Ensure WeeksAdapter calls notifyDataSetChanged when needed
2013-09-17 23:08:10 -07:00
Alan Viverette
c255a7113a Merge "Ensure WeeksAdapter calls notifyDataSetChanged when needed" into klp-dev 2013-09-18 06:03:34 +00:00
Alan Viverette
c2cbd9cbad am 9ac68dc6: am 84c5ade8: Merge "Fix vertical scroll computation in NumberPicker" into klp-dev
* commit '9ac68dc69ffe0104dd098ad14a8a8b103ca8b09e':
  Fix vertical scroll computation in NumberPicker
2013-09-17 17:32:31 -07:00
Alan Viverette
84c5ade823 Merge "Fix vertical scroll computation in NumberPicker" into klp-dev 2013-09-18 00:21:38 +00:00
Alan Viverette
cc2688d18a Animate state change for Switch
Change-Id: Ie8fdbb323b95ee1bd573a0ab452857a277de34bf
2013-09-17 17:00:12 -07:00
Alan Viverette
22c1c2cd10 Ensure WeeksAdapter calls notifyDataSetChanged when needed
Also cleans up references to Context.

BUG: 10241917
Change-Id: Ic0b3d650cd85d656002cbb11b2bc73180ffe1bec
2013-09-17 14:39:07 -07:00
Alan Viverette
fed60953b0 Update AdapterView.performItemClick() documentation
BUG: 10312828
Change-Id: I085326b336a799eeb26702dc30349e525c4f1023
2013-09-17 13:00:49 -07:00
Alan Viverette
d17e719da0 Merge "Clean up layout constructors, make them consistent" 2013-09-14 01:22:45 +00:00
Adam Powell
3934b9f520 am db34f3d1: am 50e5814c: Merge "Check RelativeLayout\'s access of its own LayoutParams during measurement" into klp-dev
* commit 'db34f3d17d0d2b6eaad8369536dcbb1025d0a00c':
  Check RelativeLayout's access of its own LayoutParams during measurement
2013-09-13 17:32:21 -07:00
Adam Powell
50e5814c33 Merge "Check RelativeLayout's access of its own LayoutParams during measurement" into klp-dev 2013-09-14 00:23:07 +00:00
Alan Viverette
5ba99f58b1 Fix vertical scroll computation in NumberPicker
BUG: 8692209
Change-Id: I3f0a36abde7987a72d1470307c55db9b70cb5ab2
2013-09-13 12:23:20 -07:00
Adam Powell
758d5a4563 Check RelativeLayout's access of its own LayoutParams during measurement
RelativeLayout's use of its own LayoutParams is really old behavior
and something it probably never should have done in the first
place. However at this point it's enshrined compatibility behavior as
fixing this would change the end results of measurement in some cases,
and we've found that apps really love doing strange things with
RelativeLayout that hit all of those edge cases.

The existing behavior ignores this code path if set to MATCH_PARENT or
WRAP_CONTENT, so we'll simply treat missing LayoutParams as the same
case.

Bug 10733375

Change-Id: I8b40b8557d19695ebcd5329aefc1603e2bf4234e
2013-09-13 09:26:16 -07:00
Kenny Root
bd51158d61 resolved conflicts for merge of aca95ca0 to master
Change-Id: I91adf923288ca724a8040ecf887e28e42ad7e259
2013-09-12 21:49:35 -07:00
Alan Viverette
77e9a28e2f Add live region politeness to View, AccessibilityNodeInfo
Alters the content change API to contain a bit mask of types of
changes represented by the event. Live regions send CONTENT_CHANGED
events immediately. Removes unused APIs for EXPANDABLE/EXPANDED.

BUG: 10527284
Change-Id: I21523e85e47df23706976dc0a8bf615f83072c04
2013-09-12 17:16:09 -07:00
Jean Chalard
0995398e73 Don't change the text in reaction to a user dict add
This is a confusing interface. The user should be able
to edit the word in the dialog, and the text should be
unchanged.

Bug: 9902905
Change-Id: I24e93df37583f6051046fd6a84a4cbb10d99c046
2013-09-12 17:47:59 +09:00
Tor Norbye
d9273d6f28 Add typedefs and nullness annotations.
This changeset adds in typedef annotations (custom annotations
marked with @IntDef) for various int parameters and return values
in the API. It also adds nullness annotations for cases where the
documentation explicitly mentioned null policy, or where it was
blindingly obvious from the context. Also fixed some typos in the
documentation.

Change-Id: Ica27c01368895818e26237544edd8483007155bb
2013-09-11 14:55:38 -07:00
Alan Viverette
d6479ec5ee Clean up layout constructors, make them consistent
All constructors now flow through to each class's own 4-argument
constructor. This ensures that theme attributes are applied even
if a base AttributeSet is not provided.

BUG: 10680863
Change-Id: I727d2961bf017c6a5e0206367081670782583394
2013-09-10 17:03:02 -07:00
Alan Viverette
e2c6f66921 am d54529c4: am 23819e7e: Merge "Make ListView\'s illegal state exception more helpful" into klp-dev
* commit 'd54529c43545faa10cac4e34e9b8d623de121e2e':
  Make ListView's illegal state exception more helpful
2013-09-10 13:10:29 -07:00
Alan Viverette
23819e7e5d Merge "Make ListView's illegal state exception more helpful" into klp-dev 2013-09-10 20:05:59 +00:00
Adam Powell
ab83c7b9b5 am 218b1163: am 6a221b3f: Fix some bizarre Spinner behavior
* commit '218b116344688053d3856a8ea8abc3dc241bcee1':
  Fix some bizarre Spinner behavior
2013-09-10 11:49:37 -07:00
Adam Powell
6a221b3f85 Fix some bizarre Spinner behavior
* Make sure the recycler is cleared when the adapter is changed.
  Bug 10689596

* Don't add views to measure the baseline.
  Bug 10690353

Change-Id: I841dc05652eef3319721631f96332f7900d1a631
2013-09-10 11:38:52 -07:00
Alan Viverette
7d8314db41 Make ListView's illegal state exception more helpful
Change-Id: I3d3205d32c6992c184a218248ba72ebf6c45a2d1
2013-09-10 11:22:53 -07:00
Alan Viverette
617feb99a0 Add View constructor that supplies a default style resource
Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
2013-09-09 18:09:13 -07:00
Alan Viverette
4e17981cdc am b198dbaf: am 013634cc: Merge "Add WebVTT caption renderer" into klp-dev
* commit 'b198dbaf19fcad86f81226aa06644db41d6028e4':
  Add WebVTT caption renderer
2013-09-09 14:14:33 -07:00
Alan Viverette
013634cc44 Merge "Add WebVTT caption renderer" into klp-dev 2013-09-09 20:31:14 +00:00
Alan Viverette
2bd9dccc13 am 1519a158: am 23f31a1c: Merge "Only activate FastScroller when it\'s needed" into klp-dev
* commit '1519a1588a053eec3a3d0c8eb077e0cc12567d0b':
  Only activate FastScroller when it's needed
2013-09-09 10:31:10 -07:00
Alan Viverette
23f31a1c4e Merge "Only activate FastScroller when it's needed" into klp-dev 2013-09-09 17:24:32 +00:00
Alan Viverette
b9f2722f6f Only activate FastScroller when it's needed
Removes code that was incorrectly handling ACTION_DOWN when the
host ListView started intercepting events for its own use. Fixes
handling of short lists and changes resulting from toggling the
FastScroller enabled state.

BUG: 10651874
Change-Id: I7b088b46d00a372a0a55291db892cc059f1aed20
2013-09-06 19:39:47 -07:00
Alan Viverette
d43daf361e Add WebVTT caption renderer
Currently missing support for region anchor points, robust layout
when snapping to lines, and vertical text.

BUG: 10260603
Change-Id: I3463b4aa0039442159144e66922d67f5dfee58ed
2013-09-06 18:06:23 -07:00
Adam Powell
1d5ac31c0d am f094655c: am a73c3a54: Merge "Add View#cancelPendingInputEvents API" into klp-dev
* commit 'f094655c804e3983a538b7bc28266b173ea5c78b':
  Add View#cancelPendingInputEvents API
2013-09-05 12:43:32 -07:00
Adam Powell
a73c3a5488 Merge "Add View#cancelPendingInputEvents API" into klp-dev 2013-09-05 19:37:51 +00:00
Chet Haase
672fcd5c9a am 04f31501: am a9fa33b3: Merge "Change build version from KEY_LIME_PIE to KITKAT" into klp-dev
* commit '04f31501602a87ae9526983f4a92e623b4d68bb3':
  Change build version from KEY_LIME_PIE to KITKAT
2013-09-05 10:13:34 -07:00
Chet Haase
e8222dddaf Change build version from KEY_LIME_PIE to KITKAT
Issue #10631619 Change build version to KitKat

Change-Id: I6ad13f6169ad74204078d36929479998b498ad8b
2013-09-05 08:44:33 -07:00
Dianne Hackborn
3facfed942 am a7a8cdfa: am 7f71206d: Merge "Fix issue #10461600: KLP API Review: UndoManager" into klp-dev
* commit 'a7a8cdfab3af29d4bdec95abd6bde96824129e4e':
  Fix issue #10461600: KLP API Review: UndoManager
2013-09-04 17:58:58 -07:00
Adam Powell
1487466dc2 Add View#cancelPendingInputEvents API
This API allows an application to cancel deferred high-level input
events already in flight. It forms one tool of several to help apps
debounce input events and prevent things like multiple startActivity
calls, FragmentTransactions, etc. from executing when only one was
desired since it's otherwise not desirable for things like click
events to fire synchronously.

Change-Id: I60b12cd5350898065f0019d616e24d779eb8cff9
2013-09-05 00:55:20 +00:00
Dianne Hackborn
b811e64cb3 Fix issue #10461600: KLP API Review: UndoManager
Hide, hide, hide!

Change-Id: Ie04825723d9392a4258e2d738828201ee387f7c6
2013-09-04 17:43:56 -07:00
Alan Viverette
79a5feff95 Fix the build, use viscous fluid interpolator in OverScroller
Change-Id: I175a220d1d915161896b9b223acfee08e0face2c
2013-09-04 16:37:57 -07:00
Lajos Molnar
9c5b14977c am a0d70290: am 171c63db: Merge "Add subtitle support to VideoView." into klp-dev
* commit 'a0d702908cc2da75e0102e1a2f276e2b3feea198':
  Add subtitle support to VideoView.
2013-09-04 14:38:51 -07:00