Commit Graph

178 Commits

Author SHA1 Message Date
Android (Google) Code Review
b0d031ad13 am fa30c0ee: Merge change 2548 into donut
Merge commit 'fa30c0eed3386af37be0f0df7aeaa886a8e6095d'

* commit 'fa30c0eed3386af37be0f0df7aeaa886a8e6095d':
  Fix a bug in AppSecurityPermissions where it wouldn't display permissions used by an app if it uses a shared user id.
2009-06-01 10:22:35 -07:00
Android (Google) Code Review
fa30c0eed3 Merge change 2548 into donut
* changes:
  Fix a bug in AppSecurityPermissions where it wouldn't display permissions used by an app if it uses a shared user id. Remove the else clause and always get the list of requested permissions first before adding the permissions obtained via the shared user id. Also change an if condition and comments for better readability
2009-06-01 10:21:05 -07:00
Android (Google) Code Review
ceb0cba357 am 10d273bb: Merge change 2591 into donut
Merge commit '10d273bb69016f7eb056d7ea1f3a929a5f5a3314'

* commit '10d273bb69016f7eb056d7ea1f3a929a5f5a3314':
  Check if the ownerView is still attached to window in
2009-06-01 09:58:38 -07:00
Android (Google) Code Review
10d273bb69 Merge change 2591 into donut
* changes:
  Check if the ownerView is still attached to window in refreshPositionVariables.
2009-06-01 09:55:44 -07:00
Android (Google) Code Review
150f7dc14b am f422dc49: Merge change 2566 into donut
Merge commit 'f422dc495ae092e8354b383a21f47b43ea698939'

* commit 'f422dc495ae092e8354b383a21f47b43ea698939':
  Fix javadoc typos. No code changes.
2009-05-29 15:10:11 -07:00
Android (Google) Code Review
f422dc495a Merge change 2566 into donut
* changes:
  Fix javadoc typos. No code changes.
2009-05-29 15:07:45 -07:00
Android (Google) Code Review
8a718a4596 am a5f50b8f: Merge change 2746 into donut
Merge commit 'a5f50b8f49cc9b34b1de462e11498d92c692b978'

* commit 'a5f50b8f49cc9b34b1de462e11498d92c692b978':
  Modify the base gestures API to use streams instead of files. Adds new wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer.
2009-05-29 14:47:16 -07:00
Romain Guy
0a63716ed0 Modify the base gestures API to use streams instead of files. Adds new wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer. 2009-05-29 14:43:54 -07:00
Android (Google) Code Review
4f67310f19 am d1353cc4: Merge change 2731 into donut
Merge commit 'd1353cc4f14a9bed49b04b0c3a6fd57784102465'

* commit 'd1353cc4f14a9bed49b04b0c3a6fd57784102465':
  Fixes #1873537.
2009-05-29 13:45:23 -07:00
Android (Google) Code Review
d1353cc4f1 Merge change 2731 into donut
* changes:
  Fixes #1873537.
2009-05-29 13:43:57 -07:00
Romain Guy
c51ef9702d Fixes #1873537.
Only update the popup window when it is shown. This avoids throwing an NPE in PopupWindow.
A PopupWindow is only aware of its content view after being shown.
2009-05-29 12:05:11 -07:00
Romain Guy
bf6a00d37b am e32edc61: Fixes #1884152. This change improves how the opaque property is handled with respect to dividers.
Merge commit 'e32edc614e62ac874a969d3cc6bb1e0c0c3f2607'

* commit 'e32edc614e62ac874a969d3cc6bb1e0c0c3f2607':
  Fixes #1884152. This change improves how the opaque property is handled with respect to dividers.
2009-05-29 11:41:21 -07:00
Romain Guy
e32edc614e Fixes #1884152. This change improves how the opaque property is handled with respect to dividers.
If the list is opaque and its background is not, then we want to fill a solid rect where the dividers should be when they are skipped for non-selectable items. When the list is opaque and the background is also opaque, there is no need to draw something in lieu of the dividers since the background will do it for us.
2009-05-29 10:33:36 -07:00
Romain Guy
5ba885ddcb am b0ded43d: Uninstalls the gestures overlay when the letters recognizer cannot be loaded instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method.
Merge commit 'b0ded43d3844d9d97c5d554e8ca4ec3ee2c7bbe1'

* commit 'b0ded43d3844d9d97c5d554e8ca4ec3ee2c7bbe1':
  Uninstalls the gestures overlay when the letters recognizer cannot be loaded instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method.
2009-05-28 12:31:48 -07:00
Romain Guy
b0ded43d38 Uninstalls the gestures overlay when the letters recognizer cannot be loaded instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method. 2009-05-27 21:37:14 -07:00
Owen Lin
470681e0ff Check if the ownerView is still attached to window in
refreshPositionVariables.
2009-05-27 17:56:17 -07:00
Jack Veenstra
982be3be05 Fix javadoc typos. No code changes.
Also reformatted a comment that was too long.
2009-05-27 15:07:59 -07:00
Suchi Amalapurapu
c7b14e9207 Fix a bug in AppSecurityPermissions where it wouldn't display permissions used by an app if it uses a shared user id.
Remove the else clause and always get the list of requested permissions first before adding the permissions obtained via
the shared user id.
Also change an if condition and comments for better readability
2009-05-27 14:14:09 -07:00
Marco Nelissen
6742fa7341 am 8ae3f619: Fix another crash in Gestures, this one caused by the data file having the wrong version. I made the loader print a message to the log for this, and made the calling code disable gestures for the listview instead of crashing.
Merge commit '8ae3f6190244156bc6e750680654057bd7816309'

* commit '8ae3f6190244156bc6e750680654057bd7816309':
  Fix another crash in Gestures, this one caused by the data file
2009-05-27 10:42:13 -07:00
Marco Nelissen
8ae3f61902 Fix another crash in Gestures, this one caused by the data file
having the wrong version. I made the loader print a message to
the log for this, and made the calling code disable gestures
for the listview instead of crashing.
2009-05-27 10:03:44 -07:00
Android (Google) Code Review
00179f02dd am 9762b533: Merge change 2465 into donut
Merge commit '9762b53352edc4cc8a6bc091930fc53dedcfe1e7'

* commit '9762b53352edc4cc8a6bc091930fc53dedcfe1e7':
  Fix crash in GestureOverlayView
2009-05-26 14:41:49 -07:00
Marco Nelissen
fea57edf0d Fix crash in GestureOverlayView 2009-05-26 14:20:35 -07:00
Android (Google) Code Review
d35041d869 am 82392e84: Merge change 2402 into donut
Merge commit '82392e84b9bcf618d1c41730ec14fb8dab841990'

* commit '82392e84b9bcf618d1c41730ec14fb8dab841990':
  Cleanup Gestures API and make it easier to use in 3rd party apps. Also fix the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes.
2009-05-24 23:49:58 -07:00
Romain Guy
82f3495b14 Cleanup Gestures API and make it easier to use in 3rd party apps. Also fix the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes. 2009-05-24 23:45:03 -07:00
Android (Google) Code Review
fa02f92162 am d9a874a4: Merge change 2397 into donut
Merge commit 'd9a874a4cb8e82ae64c1698bd71ced8d87bbc5cd'

* commit 'd9a874a4cb8e82ae64c1698bd71ced8d87bbc5cd':
  Fixes NPE in ListViews with non-selectable items. This was caused by a weird initialization issue in ListView and AbsListView: a private final field instanciated in the declaration in ListView was used in AbsListView<init> via an overriden method and that field was somehow null at this time. This fix moves the instanciation at a later point.
2009-05-23 13:29:42 -07:00
Romain Guy
a02903fbee Fixes NPE in ListViews with non-selectable items. This was caused by a weird initialization issue in ListView and AbsListView: a private final field instanciated in the declaration in ListView was used in AbsListView<init> via an overriden method and that field was somehow null at this time. This fix moves the instanciation at a later point. 2009-05-23 13:26:46 -07:00
Android (Google) Code Review
ccf1ab6484 am 4e1afc1a: Merge change 2361 into donut
Merge commit '4e1afc1a569d05cc6a1ee213c65ffb49513600ca'

* commit '4e1afc1a569d05cc6a1ee213c65ffb49513600ca':
  Fixes #1872506. Prevents NPE in ListView. When the opaque property changes at runtime, it is possible to end up in a situation in which the divider's Paint instance has not been instanciated. This change simples uses a final Paint that is guaranteed to not be null.
2009-05-22 14:51:25 -07:00
Romain Guy
b6888167d3 Fixes #1872506. Prevents NPE in ListView. When the opaque property changes at runtime, it is possible to end up in a situation in which the divider's Paint instance has not been instanciated. This change simples uses a final Paint that is guaranteed to not be null. 2009-05-22 14:09:29 -07:00
The Android Open Source Project
d14508b4d6 merge f41c640d84 w/minor conflict 2009-05-22 11:24:36 -07:00
Romain Guy
d6a463a9f2 Add a new API to ListView: setGestures(int). This allows developers to enable gestures to jump inside the list or filter it. This change also introduces a new XML attribute to control this API. It also adds the ability to theme the GestureOverlayView from the gestures library. Finally, this adds a new VERSION header to the binary format used to store the letters for the recognizer. 2009-05-22 01:59:59 -07:00
Android (Google) Code Review
9cb60109f0 am d1874747: Merge change 2202 into donut
Merge commit 'd1874747c281e3277980fe7318f9007643a25f60'

* commit 'd1874747c281e3277980fe7318f9007643a25f60':
  Fixes external http://code.google.com/p/android/issues/detail?id=2732. ExpandableListView is wrongly assuming that the saved state if of the correct type. A similar bug fix was made in TextView.onRestoreInstanceState() a while ago. This fix simply ensures that the state received is of the right type.
2009-05-21 13:16:00 -07:00
Romain Guy
7444e147a8 Fixes external http://code.google.com/p/android/issues/detail?id=2732. ExpandableListView is wrongly assuming that the saved state if of the correct type. A similar bug fix was made in TextView.onRestoreInstanceState() a while ago. This fix simply ensures that the state received is of the right type. 2009-05-21 12:54:16 -07:00
Romain Guy
190ca2a578 am a6cd4e03: Fix NPE at boot.
Merge commit 'a6cd4e03e6bde0c4b76ad7290eb2c527398478d1'

* commit 'a6cd4e03e6bde0c4b76ad7290eb2c527398478d1':
  Fix NPE at boot.
2009-05-20 16:14:08 -07:00
Romain Guy
a6cd4e03e6 Fix NPE at boot. 2009-05-20 15:09:21 -07:00
Android (Google) Code Review
1f7f391af2 am 4174e268: Merge change 2094 into donut
Merge commit '4174e2682f4eb6ea35c84e35810312967ea7e233'

* commit '4174e2682f4eb6ea35c84e35810312967ea7e233':
  Fixes #1866819.\nTextView sets the bounds of its compound drawables to contain only the width and the height of the drawables. This causes View.invalidateDrawable() to invalidate the compound drawables at location (0, 0) within the view, thus invalidating the wrong part of the View. This prevents animation from running correctly when using animated drawable. This change overrides invalidateDrawable() in TextView to take into account the real position of the compound drawable.
2009-05-20 13:15:11 -07:00
Romain Guy
3c77d39ee8 Fixes #1866819.\nTextView sets the bounds of its compound drawables to contain only the width and the height of the drawables. This causes View.invalidateDrawable() to invalidate the compound drawables at location (0, 0) within the view, thus invalidating the wrong part of the View. This prevents animation from running correctly when using animated drawable. This change overrides invalidateDrawable() in TextView to take into account the real position of the compound drawable. 2009-05-20 11:26:50 -07:00
Android (Google) Code Review
5b8a374afd am eba1ffb1: Merge change 2022 into donut
Merge commit 'eba1ffb1468ce348bcd55a2d200728d5ac3b1eb3'

* commit 'eba1ffb1468ce348bcd55a2d200728d5ac3b1eb3':
  TextView was not setting the callback on its compound drawables, thus preventing them from refreshing the view when updating their internal state. This would for instance prevent animated drawables from actually animating. Quite infuriating.
2009-05-19 16:54:25 -07:00
Romain Guy
48540eb853 TextView was not setting the callback on its compound drawables, thus preventing them from refreshing the view when updating their internal state. This would for instance prevent animated drawables from actually animating. Quite infuriating. 2009-05-19 16:44:57 -07:00
Android (Google) Code Review
8ba63601ab am 15e74b9d: Merge change 1939 into donut
Merge commit '15e74b9da8b4cda11ee54da1e77a02d1a86c944a'

* commit '15e74b9da8b4cda11ee54da1e77a02d1a86c944a':
  Temporarily suppress flaky test LocationManagerProximityTest until test harness support can be rolled out.
  Fix build breakage
  Revise the ImageButton class description to include information
  Record statistics about whether HTTP connections are reused.
2009-05-19 01:19:15 -07:00
Android (Google) Code Review
9d16d2072b Merge change 1916 into donut
* changes:
  Revise the ImageButton class description to include information about XML <selector> drawables, for managing button state.
2009-05-18 17:03:24 -07:00
Daisuke Miyakawa
841ddefcb5 Hand merge from cupcake_dcm to donut, part 2.
Modify Contacts-related java files and update vCard importer code to the latest.
2009-05-19 08:26:32 +09:00
Scott Main
84971ae010 Revise the ImageButton class description to include information
about XML <selector> drawables, for managing button state.
2009-05-18 16:05:52 -07:00
Android (Google) Code Review
370331fbca am b3c6addf: Merge change 1825 into donut
Merge commit 'b3c6addfc17be2a52133026148f3928ab97c83cb'

* commit 'b3c6addfc17be2a52133026148f3928ab97c83cb':
  Fixes #1855461, #1857290 and #1857365. Certain scrollbar styles make an opaque view not be opaque. ListView and View now account for this when indicating whether they are opaque or not.
2009-05-15 16:25:42 -07:00
Romain Guy
8f1344f5e7 Fixes #1855461, #1857290 and #1857365. Certain scrollbar styles make an opaque view not be opaque. ListView and View now account for this when indicating whether they are opaque or not. 2009-05-15 16:15:04 -07:00
svetoslavganov
76879bc234 resolved conflicts w/ 75986cf9bc merge.... 2009-05-15 00:44:45 -07:00
svetoslavganov
75986cf9bc Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut) 2009-05-14 23:47:05 -07:00
Android (Google) Code Review
85119a427f am 14ad07f6: Merge change 1708 into donut
Merge commit '14ad07f604ecd08436680a046363d37952c278f6'

* commit '14ad07f604ecd08436680a046363d37952c278f6':
  Fixes #1853550. Prevent NPE when calling the PopupWindow() and PopupWindow(int, int) constructors. Instead, throw an IllegalStateException when trying to show a popup with no content view.
2009-05-14 16:44:18 -07:00
Android (Google) Code Review
14ad07f604 Merge change 1708 into donut
* changes:
  Fixes #1853550. Prevent NPE when calling the PopupWindow() and PopupWindow(int, int) constructors. Instead, throw an IllegalStateException when trying to show a popup with no content view.
2009-05-14 16:42:46 -07:00
Romain Guy
448ecf5a94 Fixes #1853550. Prevent NPE when calling the PopupWindow() and PopupWindow(int, int) constructors. Instead, throw an IllegalStateException when trying to show a popup with no content view. 2009-05-14 16:03:42 -07:00
Marco Nelissen
80a538d656 am 9ea92317: Rearrange some code so it makes more sense. Thanks, findbugs.
Merge commit '9ea923174c2daffd9b6a1cd630018d3fdfe91f62'

* commit '9ea923174c2daffd9b6a1cd630018d3fdfe91f62':
  Rearrange some code so it makes more sense. Thanks, findbugs.
2009-05-14 15:21:43 -07:00