2153 Commits

Author SHA1 Message Date
Android (Google) Code Review
1186bb1eca am ae1ba650: Merge change 8227 into donut
Merge commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383'

* commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383':
  Handle null in MatrixCursor.get*()
2009-07-22 13:29:31 -07:00
Android (Google) Code Review
ae1ba65007 Merge change 8227 into donut
* changes:
  Handle null in MatrixCursor.get*()
2009-07-22 13:27:26 -07:00
Bjorn Bringert
f2cec58d90 Handle null in MatrixCursor.get*()
Before, if a column contained null, MatrixCursor.getString()
returned the string "null", and the get<Number>() methods
threw exceptions.

Now, getString() returns null, and get<Number>() return 0.

Fixes http://b/issue?id=1996628
2009-07-22 21:20:51 +01:00
Android (Google) Code Review
c58c78de2f am e94b2877: Merge change 8186 into donut
Merge commit 'e94b28773de2b2c9a0d0909841b2d3126048c888'

* commit 'e94b28773de2b2c9a0d0909841b2d3126048c888':
  Move global search intent launching to search dialog
2009-07-22 12:17:13 -07:00
Android (Google) Code Review
e94b28773d Merge change 8186 into donut
* changes:
  Move global search intent launching to search dialog
2009-07-22 12:14:58 -07:00
Dianne Hackborn
c00c04d7d8 am 11b822d2: Simplify density compatibility to a boolean.
Merge commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864'

* commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864':
  Simplify density compatibility to a boolean.
2009-07-22 12:01:19 -07:00
Dianne Hackborn
11b822d2a9 Simplify density compatibility to a boolean.
Instead of a list, we now just have a single boolean indicating whether an
application is density aware, and this set set to true by default as of
Donut.
2009-07-22 11:58:31 -07:00
Android (Google) Code Review
5a2572d538 am 7228d0fd: Merge change 8213 into donut
Merge commit '7228d0fdd7fd151f033b09044a9ba94b2bc06b74'

* commit '7228d0fdd7fd151f033b09044a9ba94b2bc06b74':
  Resetting the setLanguage() call to its intended behavior after change 8089
2009-07-22 11:51:29 -07:00
Android (Google) Code Review
679b67ebfa am 26654274: Merge change 8216 into donut
Merge commit '26654274905961835a36dbcfe98dc745e8beefbf'

* commit '26654274905961835a36dbcfe98dc745e8beefbf':
  Fixes #1994125. Ensures AbsListView's filter window is always dismissed.
2009-07-22 11:51:25 -07:00
Android (Google) Code Review
e75cfdc733 am b551fb87: Merge change 8210 into donut
Merge commit 'b551fb872be9b758c7793f56398d25a74d4a404c'

* commit 'b551fb872be9b758c7793f56398d25a74d4a404c':
  Always call ensureImeVisible when the text field is clicked. We want this
2009-07-22 11:51:20 -07:00
Android (Google) Code Review
9d06da8324 am 5e21a11f: Merge change 8209 into donut
Merge commit '5e21a11f00e3e65f6d7681e2519677329f0a92b2'

* commit '5e21a11f00e3e65f6d7681e2519677329f0a92b2':
  Work around StateListDrawable padding in search suggestions
2009-07-22 11:51:16 -07:00
Android (Google) Code Review
ba5e889eae am 6de72ea3: Merge change 8201 into donut
Merge commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f'

* commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f':
  Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
2009-07-22 11:51:01 -07:00
Android (Google) Code Review
7228d0fdd7 Merge change 8213 into donut
* changes:
  Resetting the setLanguage() call to its intended behavior after change 8089 which works around the bug where a language cannot be set if the default language (which is loaded upon initialization) isn't eng-USA.
2009-07-22 11:48:11 -07:00
Android (Google) Code Review
2665427490 Merge change 8216 into donut
* changes:
  Fixes #1994125. Ensures AbsListView's filter window is always dismissed.
2009-07-22 11:30:23 -07:00
Romain Guy
1f7f3c336a Fixes #1994125. Ensures AbsListView's filter window is always dismissed. 2009-07-22 11:29:59 -07:00
Android (Google) Code Review
578cf8104b am aa0e47cb: Merge change 8179 into donut
Merge commit 'aa0e47cbd6ccada9d194f39e6b4372d2d3594b38'

* commit 'aa0e47cbd6ccada9d194f39e6b4372d2d3594b38':
  Fix SQL generated by updateWithOnConflict()
2009-07-22 11:27:18 -07:00
Android (Google) Code Review
eda7572365 Merge change 8211
* changes:
  cleanup the WebStorage Java class. There were too many calls to syncValues().
2009-07-22 11:26:16 -07:00
Android (Google) Code Review
b551fb872b Merge change 8210 into donut
* changes:
  Always call ensureImeVisible when the text field is clicked. We want this regardless of whether dropDownAlwaysVisible is true or not, as long as the popup is showing and is potentially obscuring the IME.
2009-07-22 11:22:07 -07:00
Andrei Popescu
9a56bb838c cleanup the WebStorage Java class. There were too many calls to syncValues(). 2009-07-22 19:21:48 +01:00
Android (Google) Code Review
5e21a11f00 Merge change 8209 into donut
* changes:
  Work around StateListDrawable padding in search suggestions
2009-07-22 11:19:18 -07:00
Mike LeBeau
470c565b6a Always call ensureImeVisible when the text field is clicked. We want this
regardless of whether dropDownAlwaysVisible is true or not, as long as
the popup is showing and is potentially obscuring the IME.
2009-07-22 11:17:48 -07:00
Jean-Michel Trivi
9c53a5c01f Resetting the setLanguage() call to its intended behavior after change 8089
which works around the bug where a language cannot be set if the default
language (which is loaded upon initialization) isn't eng-USA.
2009-07-22 11:15:23 -07:00
Bjorn Bringert
8051172a28 Work around StateListDrawable padding in search suggestions
Sometimes when searching, some of the suggestions had no left padding.
The left-hand side icons were flush with the left edge of the screen.
The problems was that setting a StateListDrawable as a background
will always set the padding of a View, because of a problem in
DrawableContainer.

DrawableContainer.DrawableContainerState.getConstantPadding()
will always return a Rect if mVariablePadding is false, which
makes DrawableContainer.getPadding() return true, which
causes View to change the padding.

As a workaround, we use setVariablePadding(true) on the background
that we create.

Fixes http://b/editIssue?id=1984813
2009-07-22 19:13:39 +01:00
Bjorn Bringert
4899e386ff Move global search intent launching to search dialog
Fixes http://b/issue?id=1969032
2009-07-22 18:36:22 +01:00
Android (Google) Code Review
6de72ea39c Merge change 8201 into donut
* changes:
  Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
2009-07-22 10:23:16 -07:00
Karl Rosaen
1c07ebb651 Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
This way someone can call searchManger.startSearch() and immediately have searchManger.isVisible() reflect
the correct value.

Fixes failing tests and bug 1993675
2009-07-22 10:11:00 -07:00
Leon Scroggins
0f5ad842fb Allow the user to scroll a webpage by touching a textfield.
Fix for http://b/issue?id=1703971.  Because the browser overlays
the WebTextView over textfields, it intercepts all the touch
events, which was preventing the page from scrolling.  This
change passes the move events back to the WebView to make
the page scroll.
2009-07-22 11:21:18 -04:00
Bjorn Bringert
7f4c2ea378 Fix SQL generated by updateWithOnConflict()
Before, SQLiteDatabase.updateWithOnConflict() method generated
syntactically invalid SQL if the ConflictAlgorithm was non-null.
For example, it would generate
"UPDATE  OR REPLACEshortcuts SET ...",
when it should be "UPDATE OR REPLACE shortcuts SET ...".

Fixes http://b/issue?id=1995470
2009-07-22 12:49:17 +01:00
Android (Google) Code Review
c309e1509e Merge change 8025
* changes:
  wire appcache to the HTML5 UI
2009-07-22 00:45:05 -07:00
Jeff Sharkey
8a0193e4ca Added StructuredPostal, renamed PACKAGE columns, cleanup.
Changed Postal to StructuredPostal, which is the new type
coming down from GData.  This also prepares us for upcoming
data sources that need a structured version.  Because of the
number of columns required, we added 3 new DATA columns.

Moved PACKAGE back to Data rows to allow multiple apps to
merge their action entries under a single Contact.  Also
renamed to RES_PACKAGE to make clear that these packages are
strictly for loading resources, and do not imply the owner.

Removed RestrictionExceptions since we narrowed the scope
of IS_RESTRICTED for Eclair.  Factored out sync columns from
Groups and Contacts into its own interface.  Fixed general
warnings in comments.
2009-07-21 19:42:08 -07:00
Android (Google) Code Review
a8339dfec9 am 9fc20b0e: Merge change 8126 into donut
Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf'

* commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf':
  First pass at reworking screen density/size APIs.
2009-07-21 19:03:53 -07:00
Dianne Hackborn
9822d2b273 First stab at poly-finger support.
The MotionEvent API should be fairly solid, but there is still a lot of
work to do in the input device code.  In particular, right now we are
really stupid about watching how fingers change -- we just take whatever
the driver reports as down and dump that directly into the motion event.

The big remaning work is to assign pointer IDs so that applications have
help in determine which fingers go up and down, and adding support for
the official multi-touch driver protocol.
2009-07-21 19:02:12 -07:00
Android (Google) Code Review
9fc20b0e38 Merge change 8126 into donut
* changes:
  First pass at reworking screen density/size APIs.
2009-07-21 19:01:28 -07:00
Dianne Hackborn
c4db95c077 First pass at reworking screen density/size APIs.
This changes the names of the directories in aapt, to what you see
in the list of DpiTest resources.  Also adds a new "long" configuration
for wide screens, which the platform sets appropriate, and introduces
a new kind of resizeability for not large but significantly larger
than normal screens which may have compatibility issues.
2009-07-21 18:28:42 -07:00
Mitsuru Oshima
d5d967fbd9 am 38ed7d77: * Adjust canvas size under compatibility mode.
Merge commit '38ed7d7701514ee7127d0430e952930854608c4f'

* commit '38ed7d7701514ee7127d0430e952930854608c4f':
  * Adjust canvas size under compatibility mode.
2009-07-21 18:14:19 -07:00
Mitsuru Oshima
38ed7d7701 * Adjust canvas size under compatibility mode. 2009-07-21 17:41:16 -07:00
Android (Google) Code Review
fead9b8ad0 am fe6f45c8: Merge change 8098 into donut
Merge commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef'

* commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef':
  cast is floor. Use round instead.
2009-07-21 17:41:10 -07:00
Android (Google) Code Review
fe6f45c814 Merge change 8098 into donut
* changes:
  cast is floor. Use round instead.  This fixes a few layout issues (that was due to smaller widnow size)
2009-07-21 17:39:05 -07:00
Android (Google) Code Review
55616f95af am 74cb705f: Merge change 8121 into donut
Merge commit '74cb705f0c1ee5ccb598b2b676aa50a36e6af7f9'

* commit '74cb705f0c1ee5ccb598b2b676aa50a36e6af7f9':
  Fixes #1818201. Do not attempt to display the popup until after the first layout.
2009-07-21 17:29:43 -07:00
Android (Google) Code Review
74cb705f0c Merge change 8121 into donut
* changes:
  Fixes #1818201. Do not attempt to display the popup until after the first layout.
2009-07-21 17:06:04 -07:00
Romain Guy
9bc9fa1538 Fixes #1818201. Do not attempt to display the popup until after the first layout. 2009-07-21 17:05:09 -07:00
Android (Google) Code Review
fff89ca293 am 7e71fb28: Merge change 8111 into donut
Merge commit '7e71fb284d5997bff7e359edc8e1b19cbfb1c9ca'

* commit '7e71fb284d5997bff7e359edc8e1b19cbfb1c9ca':
  Don't start search from a dialog if there is no activity associated with
2009-07-21 16:43:24 -07:00
Mitsuru Oshima
61324e58c5 cast is floor. Use round instead.
This fixes a few layout issues (that was due to smaller widnow size)
2009-07-21 16:42:41 -07:00
Android (Google) Code Review
7e71fb284d Merge change 8111 into donut
* changes:
  Don't start search from a dialog if there is no activity associated with the search manager at that point.
2009-07-21 16:41:41 -07:00
Android (Google) Code Review
078bc317b7 am 43f8d2e5: Merge change 8106 into donut
Merge commit '43f8d2e58ce75d1705ad3ee347ae4eaee5dc9b6a'

* commit '43f8d2e58ce75d1705ad3ee347ae4eaee5dc9b6a':
  Add note to Intent.fillIn javadoc to describe component copying behavior.
2009-07-21 16:34:37 -07:00
Android (Google) Code Review
43f8d2e58c Merge change 8106 into donut
* changes:
  Add note to Intent.fillIn javadoc to describe component copying behavior.
2009-07-21 16:32:14 -07:00
Karl Rosaen
ec0a12cf19 Don't start search from a dialog if there is no activity associated with
the search manager at that point.

Still works:
- hitting search when a managed dialog of an app is showing will dismiss
  the dialog and start in-app search (if it supports it), falling back
  on global search
- hitting search when a dialog of an app (not managed by the activity) will
  dismiss the dialog and start global search
- hitting search when a system dialog is showing will just dismiss the dialog.
2009-07-21 16:21:32 -07:00
Brett Chabot
3e391759d9 Add note to Intent.fillIn javadoc to describe component copying behavior. 2009-07-21 16:09:08 -07:00
Android (Google) Code Review
c6a936aa1b Merge change 8084
* changes:
  Fix for enabling auto-switch back to alpha mode from symbols.
2009-07-21 15:10:24 -07:00
Amith Yamasani
b974c7a749 Fix for enabling auto-switch back to alpha mode from symbols.
When switching keyboards in the IME view, make sure that any pending touches
don't generate up events when released.
2009-07-21 15:09:24 -07:00