Commit Graph

3236 Commits

Author SHA1 Message Date
Daisuke Miyakawa
30a2e36754 Fix vCard composer in three points.
- Make it allow composer users to emit Quoted-Printabled primary ("N", "FN", etc.) properties.
- Make it strictly check whether it is necessary for the composer to emit CHARSET infomation.
-- Added the logic "not vCard 3.0, or, CHARSET is not UTF-8".
- Clean up the code (again...)
2009-09-30 10:52:27 -07:00
Android (Google) Code Review
6e58cf2108 Merge change I020d2e34 into eclair
* changes:
  Invoke the OnErrorListener callback when MediaPlayer.setDataSource() throws.
2009-09-30 12:07:24 -04:00
Android (Google) Code Review
fb54aaddf2 Merge change Ic3aa7aa6 into eclair
* changes:
  Recreate search dialog view each time it's shown.
2009-09-30 11:06:59 -04:00
Cary Clark
0c5924e9dd preserve webkit-side text selection
When webkit modifies a text field programmatically, it may change
the selection. This competes with the UI thread attempting to
set the selection in response to the IME next button and changes
made by the trackball.

One recent fix (https://android-git.corp.google.com/g/#change,26904)
sets the selection from the UI side after the IME generated click.
Unfortunately, this can be generated under other circumstances,
so this change qualifies this with mOkayForFocusNotToMatch, which
is only set after the IME next button is pressed.

The other change qualfies onTextChanged calls so that if it was
triggered by setTextAndKeepSelection, the webkit-side selection
is unchanged.

fixes http://b/issue?id=2096746
2009-09-30 10:52:14 -04:00
Bryan Mawhinney
f36740b2e4 Recreate search dialog view each time it's shown.
This is slower, but less vulnerable to problems in TextField, for example.

Change-Id: I3bb6220f30d8231cedde97fc5e0c4db993660d27
2009-09-30 15:20:22 +01:00
Andrei Popescu
020d2e3453 Invoke the OnErrorListener callback when MediaPlayer.setDataSource() throws.
Fixes http://b/issue?id=2156505
2009-09-30 14:54:55 +01:00
Leon Clarke
194e345eb0 Re-instate the link coloring on startup, but going via the browser
to read the bookmark history, and restricting it to 100 results.

Link coloring - doing db lookup in new thread

Whitespace, following review
2009-09-30 10:09:49 +01:00
Android (Google) Code Review
49e750a358 Merge change I7495977a into eclair
* changes:
  Add cancelThumbnailRequest to thumbnail API.
2009-09-30 02:59:56 -04:00
Costin Manolache
3348f14b3d Remove GAIA string 2009-09-29 22:52:05 -07:00
Mike Cleron
290947bbf8 Git sucks 2009-09-29 21:53:56 -07:00
Ray Chen
b994419263 Add cancelThumbnailRequest to thumbnail API. 2009-09-29 20:26:58 -07:00
Mike LeBeau
2e4dbe70e7 Unhide APIs for enabling geolocation in web views. I've confirmed
with Grace that these are okay to unhide.
2009-09-29 19:40:28 -07:00
Wu-cheng Li
77153ee04e Hide zoom api. 2009-09-29 16:16:33 -07:00
Android (Google) Code Review
c4e20e9e1a Merge change Iae12c7f0 into eclair
* changes:
  Add REQUESTING_PACKAGE_PARAM_KEY.
2009-09-29 18:51:10 -04:00
Android (Google) Code Review
8eb0f34893 Merge change I67285c9a into eclair
* changes:
  Prevent NPE when doing a fillSpecific layout.
2009-09-29 18:19:05 -04:00
Romain Guy
8bcdc0764f Prevent NPE when doing a fillSpecific layout.
Change-Id: I67285c9a314400da11fdf158c413bf05fe6b982e
2009-09-29 15:17:47 -07:00
Android (Google) Code Review
de04cb810f Merge change Ie9f76062 into eclair
* changes:
  Add Gservices flag for Vending doctor download complete timeout.
2009-09-29 18:16:52 -04:00
Evan Millar
49da15f34d Add REQUESTING_PACKAGE_PARAM_KEY.
Change-Id: Iae12c7f029b8efd1811d99d24df9281a8f9a2446
2009-09-29 14:31:52 -07:00
Android (Google) Code Review
a39f9188d6 Merge change I9c45753b into eclair
* changes:
  Clean up vCard code.
2009-09-29 17:09:55 -04:00
Android (Google) Code Review
ac35dc4716 Merge change I1cd7d0e5 into eclair
* changes:
  Implement the checkin option in AccountManagerService.dump()
2009-09-29 17:06:57 -04:00
Android (Google) Code Review
d35afcda67 Merge change Ib2c6429d into eclair
* changes:
  border for the non-badge case
2009-09-29 17:06:23 -04:00
Daisuke Miyakawa
a2ba9a1999 Clean up vCard code.
With this change, the vCard composer does not emit any information
about CHARSET until it is really needed for parsing it (e.g. when
non-ascii chacacters are included in some value). This "may" be
effective toward external vCard importers which are not able to
understand non-ascii characters and CHARSET info itself.

Also now vCard composer does not use Quoted Printable until it is
really needed (e.g. until when the composer find non-"7bit"
characters are included in some value. "7bit" is defined in vCard 2.1,
which is "<7bit us-ascii printable chars, excluding CR LF>".

The vCard composer detects duplicate phone numbers, email addresses,
and remove them in default. The duplication would come from
aggregation done by the new ContactsProvider introduced in Eclair.
Even when two Accounts have two exactly same addresses, we cannot
ask ContactsProvider to exclude them since current implementation of
ContactsProvider2#queryEntities() does not acceps Contacts.CONTENT_URI
but only RawContacts.CONTENT_URI, which inevitably returns same
email addresses with different Accounts (ACCOUNT_NAME and ACCOUNT_TYPE
should be different. If not, the original contact itself should have
the duplication).

The vCard composer now detects null returned from queryEntities().
The null value is potentially harmful for vCard file, since it forces
the (old) vCard composer to emit meaningless line like "BDAY:".

Internal Issue number: 2150768, 2151954, 2154235
2009-09-29 13:59:01 -07:00
Cary Clark
4fbf81bc94 check for null item in web history in saveState
fixes http://b/issue?id=215369
2009-09-29 16:21:25 -04:00
Jason Parks
1cd7d0e591 Implement the checkin option in AccountManagerService.dump()
When the dump is requested by the checkin server the AccountManagerService will now dump each account type and the number accounts that are registered/active for that account type.
2009-09-29 13:06:10 -07:00
Cary Clark
eaa18dec91 scroll text field with touch
Add a hidden public method to text/method/Touch.java that
computes the maximum scroll amount for a text field.

Remove 'faketouch' code; it causes a crash and is
no longer required.

Pass the percentage of the current scroll from the UI
thread to webkit. One additional fix is to allow very
small movements which are currently disallowed because
they are smaller than 'smallerSlop' in WebTextView.java.

Companion fix is in external/webkit.

Fixes http://b/issue?id=2133049
2009-09-29 15:42:37 -04:00
Android (Google) Code Review
f993fefc3b Merge change Icbd74742 into eclair
* changes:
  EventLog when a database file is deleted due to corruption.
2009-09-29 15:15:21 -04:00
Jeff Hamilton
a722d5b1bd EventLog when a database file is deleted due to corruption.
Change-Id: Icbd747425e97e022b91fbaf64579982d802524bf
2009-09-29 11:50:32 -07:00
Leon Scroggins
d84e7d53d3 Allow scrolls to continue when getting a new content size.
In recordNewContentSize, rather than aborting any scrolls in progress,
find the final coordinates of the scroll and pin them to the new size,
and let the scroll continue.

Fixes http://b/issue?id=2141960

Change-Id: I7bfa444b52e70a0ca817221f379df77efc3496b7
2009-09-29 14:43:05 -04:00
Android (Google) Code Review
490d5222ae Merge change I6cacaa0d into eclair
* changes:
  Hack to fix issue #2125365: Sports Trivia compatability with Eclair
2009-09-29 13:44:47 -04:00
lknguyen
f602c5170e Add Gservices flag for Vending doctor download complete timeout. 2009-09-29 10:04:26 -07:00
Mark Wagner
b2c6429d4d border for the non-badge case
If we don't have a uri/email/phone then we do not display the normal
fast track badge.  But in that case we now have an alternate background/border
rather than no background/border.
2009-09-29 09:49:50 -07:00
Android (Google) Code Review
7745e035c9 Merge change I94c715d6 into eclair
* changes:
  Skip requestRectangleOnScreen for WebTextView during zoom animation. If it is in edit mode, we already adjust WebTextView in the end of zoom animation.
2009-09-29 11:19:48 -04:00
Android (Google) Code Review
7db7e6a00c Merge change I17f45d35 into eclair
* changes:
  Unhide SearchManager.SUGGEST_PARAMETER_LIMIT
2009-09-29 03:35:53 -04:00
Bjorn Bringert
86917dbb95 Unhide SearchManager.SUGGEST_PARAMETER_LIMIT
Both GlobalSearch and the search dialog now pass
SearchManager.SUGGEST_PARAMETER_LIMIT as a query parameter to all
suggestion sources. Exposing this allows suggestion sources
to return only the number of results that the client requires.

Fixes http://b/issue?id=2150992

Change-Id: I17f45d35e8f302b11812f4bb6fee40b31dc15707
2009-09-29 08:14:35 +01:00
Dianne Hackborn
7eca687c2e Fix bug where we would return null with disabled components.
Change-Id: I1624a42803f1c4b02736f558a8eeeeba2890667e
2009-09-28 23:57:05 -07:00
Grace Kloba
94c715d662 Skip requestRectangleOnScreen for WebTextView during
zoom animation. If it is in edit mode, we already adjust
WebTextView in the end of zoom animation.

Fix part 1 of http://b/issue?id=2147168
2009-09-28 23:23:53 -07:00
Dianne Hackborn
94d691499b Fix issue #1930911: Crash in system process
Ensure that we do all the work for removing a window's view
hierarchy in that window's thread.

Change-Id: Ib7c1701aee6b541b75fd1a680f6987f959f2ba88
2009-09-28 22:14:42 -07:00
Mike Cleron
52f0a64952 Finish off java API to allow fading scrollbars 2009-09-28 18:31:09 -07:00
Jeff Sharkey
8f76734d1e Fix docs breakage. 2009-09-28 18:22:46 -07:00
Jeff Sharkey
ff18bbf835 Separate API for vCards through openAssetFileDescriptor().
Previously we overloaded Contacts.CONTENT_URI to return
vCard-formatted Contacts entries.  To fix http://b/2138790
this is a separate API that returns a well-known MIME-type.

Also helps fix http://b/2078399 by adding OFFICE_LOCATION.
2009-09-28 17:44:53 -07:00
Dianne Hackborn
afa78967b8 Hack to fix issue #2125365: Sports Trivia compatability with Eclair
Adds a mechanism to tell Paint the scaling factor its target
canvas will have, for it to compute font metrics based on the
correct font size.  Only TextView uses this, but that is enough
for the large majority of apps.

Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
2009-09-28 17:33:54 -07:00
Android (Google) Code Review
f36a2bb59b Merge change Ibeb22f37 into eclair
* changes:
  Call the proper variant of markAsContacted.
2009-09-28 20:09:57 -04:00
Android (Google) Code Review
1cff747617 Merge change Ie7d26695 into eclair
* changes:
  Modify the "active chats" uri to not overlap with other uris.
2009-09-28 20:05:55 -04:00
Jeff Hamilton
56a108220f Call the proper variant of markAsContacted.
Change-Id: Ibeb22f37bd079b1a965f5b350ac7ca6e77eac00f
2009-09-28 16:57:37 -07:00
Android (Google) Code Review
3f48d31b74 Merge change I228d52db into eclair
* changes:
  Three changes.
2009-09-28 19:47:28 -04:00
Daisuke Miyakawa
f2e0d7bb78 Three changes.
- Add FOR_EXPORT_ONLY to Data column.
- Make VCardComposer use Contacts instead of RawContacts.
- Make VCardComposer honor FOR_CONTACT_ONLY regardless of
  the intention of any caller, which makes composer unable to
  compose any contact with "is_restricted" flag, which is unseen
  from outside the contacts provider.

Internal Issue number: 2147248, 2143207
2009-09-28 16:44:13 -07:00
Android (Google) Code Review
5d259d3bfd Merge change Id29ec50d into eclair
* changes:
  Do not crash appwdiget host when a pending intent send fails.
2009-09-28 19:25:53 -04:00
Romain Guy
995d8561a6 Do not crash appwdiget host when a pending intent send fails.
Change-Id: Id29ec50dcb4d51589b9732ace6d505fcea9cc787
2009-09-28 16:24:35 -07:00
Android (Google) Code Review
ebd45e5ca9 Merge change I55edce63 into eclair
* changes:
  Fix issue #2149145: Safe Mode does not work on Sholes device
2009-09-28 18:11:28 -04:00
Mark Wagner
e7d266957d Modify the "active chats" uri to not overlap with other uris. 2009-09-28 15:10:57 -07:00