Commit Graph

206 Commits

Author SHA1 Message Date
Andrew Stadler
66e4aed2ac Add ViewBinder & setText APIs to match SimpleCursorAdapter
There's nothing new here, just a clone of the ViewBinder API from
SimpleCursorAdapter.  This provides a much more lightweight way to
override data mapping on an item-by-item basis.

Possibly to-do, but I would rather leave for another CL:
(1) Better handling of expanded/contracted group & last child (footer).
(2) Cached info map (see SimpleCursorAdapter) for performance
2009-06-11 12:17:50 -07:00
Mike LeBeau
21373aaef2 resolved conflicts for merge of 174231 to master 2009-06-11 18:50:27 +01:00
Bjorn Bringert
50145bc883 ACTV: getWindowVisibility() instead of private attach count
When debugging a problem with the search dialog drop-down
sometimes not showing up, I saw that the mAttachCount variable
in AutoCompleteTextView could get a negative value because
onDetachedFromWindow() was called multiple times. This lead to
the drop-down not being displayed on filtering.

Instead of the private attach count in ACTV, this change
uses View.getWindowVisibility().
2009-06-11 12:30:48 +01:00
Dmitri Plotnikov
0918bf0688 Adding new query: aggregation suggestions 2009-06-10 16:40:37 -07:00
Android (Google) Code Review
edc4a87d4d am 6b4b50b8: Merge change 2900 into donut
Merge commit '6b4b50b8079aa274727c3120f858179eb6259351'

* commit '6b4b50b8079aa274727c3120f858179eb6259351':
  Add support for custom tab views in TabHost and TabWidget.
2009-06-10 12:20:48 -07:00
Jack Veenstra
53175148c9 Add support for custom tab views in TabHost and TabWidget.
This change adds the ability to specify an arbitrary view for a tab
indicator.  It also adds support for specifying a drawable to use as
the divider between tab views.
2009-06-10 11:38:02 -07:00
Android (Google) Code Review
b9048924c7 am a32b5f32: Merge change 2411 into donut
Merge commit 'a32b5f3252a58416f328399680395aa5fa936640'

* commit 'a32b5f3252a58416f328399680395aa5fa936640':
  Manual merge from cupcake_dcm. Need to be reviewed by enf.
2009-06-10 08:05:02 -07:00
Android (Google) Code Review
a32b5f3252 Merge change 2411 into donut
* changes:
  Manual merge from cupcake_dcm. Need to be reviewed by enf.
2009-06-10 08:01:20 -07:00
Romain Guy
0d24e9b56b am 0e1ca574: Add support for gestures in Home.
Merge commit '0e1ca5749a96778869ef62f939542a61c034209b'

* commit '0e1ca5749a96778869ef62f939542a61c034209b':
  Add support for gestures in Home.
2009-06-09 23:00:50 -07:00
Romain Guy
0e1ca5749a Add support for gestures in Home.
Adds a new animation style for the gestures pad, and de-normalize
the scores in the recognition engine.
2009-06-09 22:58:46 -07:00
Romain Guy
3cfda9c225 am f642aa2a: Removes gestures from ListView.
Merge commit 'f642aa2a44e63aa105bbc6aec59f9bee261986ef'

* commit 'f642aa2a44e63aa105bbc6aec59f9bee261986ef':
  Removes gestures from ListView.
2009-06-08 23:50:30 -07:00
Romain Guy
f642aa2a44 Removes gestures from ListView. 2009-06-08 23:24:18 -07:00
Romain Guy
5519185292 resolved conflicts for merge of bad927 to master 2009-06-08 15:33:17 -07:00
Romain Guy
0a20264db8 Do not automatically enable gestures in list based on filtering/fastscroll status. Enable gestures in Contacts for now. 2009-06-08 14:47:01 -07:00
Android (Google) Code Review
4bfa86011a am 4e0b13c9: Merge change 3348 into donut
Merge commit '4e0b13c9a94f2085d44d0fe36fd16e2599477145'

* commit '4e0b13c9a94f2085d44d0fe36fd16e2599477145':
  Fix AlphabetIndexer.getSectionForPosition()
2009-06-05 21:17:24 -07:00
Android (Google) Code Review
680b30f60c am 39665367: Merge change 3317 into donut
Merge commit '3966536766cbe0bd45570c6785e912131911ff79'

* commit '3966536766cbe0bd45570c6785e912131911ff79':
  Fixes #1899273.
2009-06-05 21:16:47 -07:00
Android (Google) Code Review
4e0b13c9a9 Merge change 3348 into donut
* changes:
  Fix AlphabetIndexer.getSectionForPosition()
2009-06-05 14:53:00 -07:00
Phil Dubach
1b111bb6e2 Fix AlphabetIndexer.getSectionForPosition()
This did not properly set the cursor position before reading, which
resulted in wrong return values or exceptions in the cursor.
2009-06-05 12:27:59 -07:00
Romain Guy
834f0391b5 Fixes #1899273.
When a "ghost" stroke was showing, events would be intercepted in ListView. This patch modifies the logic used to detect when to still events: either the current stroke is a gesture, or the previous stroke was a gesture.
2009-06-05 11:24:09 -07:00
Android (Google) Code Review
fa77935446 am ad8a510f: Merge change 3227 into donut
Merge commit 'ad8a510fcc3b853bd0dadcffb4433c465f2993b4'

* commit 'ad8a510fcc3b853bd0dadcffb4433c465f2993b4':
  Fix int to string mapping of exported properties. The value generated by the
2009-06-04 23:48:22 -07:00
Android (Google) Code Review
029a8c0372 am b640da8f: Merge change 3204 into donut
Merge commit 'b640da8fcbc63821dfca1ab92f038771a2bf0ab9'

* commit 'b640da8fcbc63821dfca1ab92f038771a2bf0ab9':
  Avoid touching all adapter items when building accessibility event.
2009-06-04 23:45:36 -07:00
Android (Google) Code Review
f435729787 am 7835b0b7: Merge change 3192 into donut
Merge commit '7835b0b742a36641a4005663134dc0b5d0678eab'

* commit '7835b0b742a36641a4005663134dc0b5d0678eab':
  Fixes #1882836.
2009-06-04 22:43:59 -07:00
Android (Google) Code Review
ad8a510fcc Merge change 3227 into donut
* changes:
  Fix int to string mapping of exported properties. The value generated by the mapping in a @ViewDebug.ExportedProperty annotation was always overriden by the resolveId attribute.
2009-06-04 15:12:06 -07:00
Romain Guy
a1f3e4aef1 Fix int to string mapping of exported properties. The value generated by the
mapping in a @ViewDebug.ExportedProperty annotation was always overriden by
the resolveId attribute.
2009-06-04 15:10:46 -07:00
Android (Google) Code Review
b640da8fcb Merge change 3204 into donut
* changes:
  Avoid touching all adapter items when building accessibility event.
2009-06-04 14:12:02 -07:00
Amith Yamasani
d296fafab5 Avoid touching all adapter items when building accessibility event.
Only check for enabled items if the list is less than 15 items.
2009-06-04 14:00:20 -07:00
Romain Guy
f993ad5b89 Fixes #1882836.
Prevents the gestures window from leaking. This change does exactly what was
done for the filter popup window: the popup is dismissed in onSaveInstanceState()
as it is the only place that is executed early enough to avoid the dreaded
window leak error.
2009-06-04 13:26:52 -07:00
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
Daisuke Miyakawa
c1d2748d44 Manual merge from cupcake_dcm. Need to be reviewed by enf. 2009-05-25 17:37:41 +09:00