OSDN Git Service

android-x86/packages-apps-Contacts.git
14 years agoMerge change 24628 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 18:04:47 +0000 (14:04 -0400)]
Merge change 24628 into eclair

* changes:
  Fix an exception in Contacts when you select text backwards from the end.

14 years ago[Issue 2113852] Fixing mismatches between pictures and contacts
Dmitri Plotnikov [Fri, 11 Sep 2009 17:14:37 +0000 (10:14 -0700)]
[Issue 2113852] Fixing mismatches between pictures and contacts

Change-Id: Iea49a8b995632753b71572105c8443f4a63ad6d7

14 years agoFix an exception in Contacts when you select text backwards from the end.
Eric Fischer [Fri, 11 Sep 2009 00:57:45 +0000 (17:57 -0700)]
Fix an exception in Contacts when you select text backwards from the end.

It was assuming that the end of the selection always came after or at the
start of the selection, and that therefore (start,end) was a safe range
to replace, but this is not actually the case when you select backwards --
in this case, the end comes before the start.

Bug 2087034

14 years agoAdd StructuredPostal editor for EAS. Fixes http://b/2111725
Jeff Sharkey [Fri, 11 Sep 2009 00:41:52 +0000 (17:41 -0700)]
Add StructuredPostal editor for EAS.  Fixes b/2111725

14 years agoMerge change 24599 into eclair
Android (Google) Code Review [Thu, 10 Sep 2009 23:22:44 +0000 (19:22 -0400)]
Merge change 24599 into eclair

* changes:
  [Issue 2112887] Fixing picture display in the manual contact join UI

14 years agoInsert, update, delete photos. Trim empty fields.
Jeff Sharkey [Thu, 10 Sep 2009 22:02:32 +0000 (15:02 -0700)]
Insert, update, delete photos.  Trim empty fields.

Allow photo changes when the ContactsSource allows Photo
entries.  This change also trims out any inserted or updated
fields that are now "empty" according to their respective
DataKind fields.  Wrote unit tests for field trimming to
ensure wiping works.  Fixes http://b/2050549

14 years ago[Issue 2112887] Fixing picture display in the manual contact join UI
Dmitri Plotnikov [Thu, 10 Sep 2009 17:59:34 +0000 (10:59 -0700)]
[Issue 2112887] Fixing picture display in the manual contact join UI

Change-Id: Ibf747091532b4c03fb29594d79c0156465437779

14 years agoFix bug 2110011
Evan Millar [Thu, 10 Sep 2009 19:30:03 +0000 (12:30 -0700)]
Fix bug 2110011

Change-Id: Ib4aee767d11a8ae71d55815908e89c1097041f60

14 years agoShow a disambig dialoge to choose a number when initiating a call on a contact.
Evan Millar [Wed, 9 Sep 2009 16:23:12 +0000 (09:23 -0700)]
Show a disambig dialoge to choose a number when initiating a call on a contact.

This fixes 2098966

Change-Id: I6fd80a2fe25ab1b6d36d913cb96c7927939512b7

14 years agoFix the hardcoded sources for Facebook. The fallback sources don't do what I thought...
Jeff Hamilton [Thu, 10 Sep 2009 17:20:06 +0000 (10:20 -0700)]
Fix the hardcoded sources for Facebook. The fallback sources don't do what I thought they did.

Change-Id: I3383ac47b32b82f7b34acc114b0e9b61746a525e

14 years agoLookup uris, delete, aggregation rules, untyped, sharing.
Jeff Sharkey [Mon, 7 Sep 2009 09:14:21 +0000 (02:14 -0700)]
Lookup uris, delete, aggregation rules, untyped, sharing.

ContactsListView: combined together various import/export
menus under single dialog, hiding SIM import when no ICC
present.  Switched almost all cases to use soft "lookup"
uris, especially for pick and operation cases.  Brought
back delete in long-press menu, and pick modes needed for
SHOW_OR_CREATE.  These partially fix http://b/2096050 and
http://b/2096870 and http://b/2102632

ViewContactActivity: changed menus to inflate from XML,
added "Share" option to replace barcode.  Confirmed that it
sends vCard through Gmail, other apps can match MIME-type
to begin appearing in picker.  Changed EAS rules back to
untyped for Email and IM, which now allows use to use IM
type as protocol picker.  Fixes http://b/2072731 and
http://b/2092744 and http://b/2088935

EditContactActivity: restructured editing to front-load all
version assertions, and perform as single batch to prepare
for reparenting.  Correctly generate AggregationExceptions
using new API from dplotnikov, especially in cases where we
create multiple RawContacts from scratch.  Unit tests to
verify exceptions built correctly for edge cases.  Also
showing toast when saving failed.  These changes were mostly
untracked, but fixes http://b/2099211

Various untracked NPE related to untyped HardCodedSources
and cleanup of "tel" "smsto" and SMS MIME-type constants.

14 years agoShow organization company and postion instead of "Organization" and position.
Evan Millar [Fri, 4 Sep 2009 22:26:36 +0000 (15:26 -0700)]
Show organization company and postion instead of "Organization" and position.

Fixes bug 2101949

Change-Id: Ia6c96eb05b95bac3a7510a8d9d9312bd2ac9209d

14 years agoFix for bug 2100165.
Evan Millar [Fri, 4 Sep 2009 21:07:44 +0000 (14:07 -0700)]
Fix for bug 2100165.

Change-Id: Id147518259b94b1f398e538d0b7b509afd346006

14 years agoFix issue 1992233: DTMF tones on Sholes is really long.
Eric Laurent [Mon, 7 Sep 2009 15:45:14 +0000 (08:45 -0700)]
Fix issue 1992233: DTMF tones on Sholes is really long.

Do not use a delayed message to define the DTMF tone duration. Use the duration parameter in ToneGenerator.startTone() instead. This garanties that the actual tone duration is independent from the filling level of the audio buffers when the tone starts.

14 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Tue, 8 Sep 2009 23:26:49 +0000 (16:26 -0700)]
Import revised translations.  DO NOT MERGE

14 years agoFix the display of social updates in the fast track, and the hard coded Facebook...
Jeff Hamilton [Tue, 8 Sep 2009 18:21:42 +0000 (13:21 -0500)]
Fix the display of social updates in the fast track, and the hard coded Facebook sources.

Change-Id: Ifbb429ad5714bdd78a5571c4adc575b74f928649

14 years agoFixing contact aggregation exception API.
Dmitri Plotnikov [Sat, 5 Sep 2009 00:37:15 +0000 (17:37 -0700)]
Fixing contact aggregation exception API.

14 years agoFixing mime types for contact.GET_CONTENT intent
Dmitri Plotnikov [Thu, 3 Sep 2009 23:57:30 +0000 (16:57 -0700)]
Fixing mime types for contact.GET_CONTENT intent

14 years ago[Issue 2099504] Bypassing contact split dialog when there are only two raw contacts...
Dmitri Plotnikov [Thu, 3 Sep 2009 22:17:56 +0000 (15:17 -0700)]
[Issue 2099504] Bypassing contact split dialog when there are only two raw contacts in the aggregate

14 years agoResetting URI before a contact lookup
Dmitri Plotnikov [Thu, 3 Sep 2009 21:37:15 +0000 (14:37 -0700)]
Resetting URI before a contact lookup

14 years agoSwitching to contact lookup URI in View Contact.
Dmitri Plotnikov [Thu, 3 Sep 2009 21:09:45 +0000 (14:09 -0700)]
Switching to contact lookup URI in View Contact.

This also fixes UI update after contact split.

14 years ago[Issue 2097203] Fixing a crash in manual contact join
Dmitri Plotnikov [Thu, 3 Sep 2009 17:21:06 +0000 (10:21 -0700)]
[Issue 2097203] Fixing a crash in manual contact join

14 years agoCorrectly change aggregation mode in all cases, unit tests.
Jeff Sharkey [Thu, 3 Sep 2009 05:55:59 +0000 (22:55 -0700)]
Correctly change aggregation mode in all cases, unit tests.

Fixed broken unit tests, and in the process corrected an
issue where we changed aggregation mode in some cases where
is wasn't needed.  (When updating but no values change.)

14 years agoShowing a toast when a contact shortcut leads nowhere.
Dmitri Plotnikov [Thu, 3 Sep 2009 02:04:41 +0000 (19:04 -0700)]
Showing a toast when a contact shortcut leads nowhere.

This is a temporary patch to prevent a crash.  We need a better UI solution.

14 years agoAdd Organization and Note kinds to Exchange viewing/editing
Evan Millar [Wed, 2 Sep 2009 23:42:47 +0000 (16:42 -0700)]
Add Organization and Note kinds to Exchange viewing/editing

Also add placeholder "chat" string to show as label for exchange im
items.

Fixes bug 2072710 and 2092920

Change-Id: I5c3ba0c73160f93b6d06b5b6a2ca20a84f56da18

14 years agoAdd missing import. Fix the build.
Evan Millar [Thu, 3 Sep 2009 00:53:25 +0000 (17:53 -0700)]
Add missing import. Fix the build.

Change-Id: I9ddf3cb6bf530c77fb89e0e2aa6505d6a52505c1

14 years agoFix http://b/issue?id=2086484 and http://b/issue?id=2087539
Evan Millar [Wed, 2 Sep 2009 21:33:38 +0000 (14:33 -0700)]
Fix b/issue?id=2086484 and http://b/issue?id=2087539

Change-Id: I392e52ac821a2eabd40c26024dbc587e6e63236f

14 years agoUse ContactsSource in View
Evan Millar [Wed, 2 Sep 2009 15:55:01 +0000 (08:55 -0700)]
Use ContactsSource in View

Combine BaseContactCardActivity and ViewContactActivity, since
EditContactActivity isn't using it anyway.

Use Entity querying, and ContactsSource in ViewContactActivity.

Change-Id: Idc0fb4d5d4e2637f5a345461362d55d4bfcb6cf2

14 years agoSpecify editors for fallback StructuredName.
Jeff Sharkey [Thu, 3 Sep 2009 00:29:29 +0000 (17:29 -0700)]
Specify editors for fallback StructuredName.

Fixes http://b/2096580

14 years agoUse "IM" for EAS-specific field titles.
Jeff Sharkey [Wed, 2 Sep 2009 19:00:40 +0000 (12:00 -0700)]
Use "IM" for EAS-specific field titles.

14 years agoRoll back (for now) to *all* low-density artwork in Contacts.
Daniel Sandler [Wed, 2 Sep 2009 18:11:13 +0000 (14:11 -0400)]
Roll back (for now) to *all* low-density artwork in Contacts.

This should end http://b/issue?id=2086871 by removing the high-density assets
introduced in <https://android-git.corp.google.com/w/?p=platform/packages/apps/Contacts.git;a=commit;h=bb769338d3ba4af769db147bae06e4f3ddc5030c>

They are way out of sync with the current version of Contacts and need to be replaced with updated versions.

Should fix http://b/2086871.

14 years agoFixing support for contact shortcuts.
Dmitri Plotnikov [Wed, 2 Sep 2009 15:44:32 +0000 (08:44 -0700)]
Fixing support for contact shortcuts.

14 years agoOlder EAS types, new Email field, fix count and INSERT bugs.
Jeff Sharkey [Tue, 1 Sep 2009 19:00:58 +0000 (12:00 -0700)]
Older EAS types, new Email field, fix count and INSERT bugs.

The EAS sync-adapter isn't ready to handle type-less Email
and IM entries yet, so bring back the original strongly-
typed editors.  Partially fixes http://b/2089080

Provide a second edit field for Email.DISPLAY_NAME when
editing EAS contacts.  Partially fixes http://b/2092744

Correct count when determining canInsert() for fields that
have typeOverallMax constraints.  Fixes http://b/2089132

Correctly build incoming StructuredName using existing
field, and check for empty fields to fix http://b/2078726

14 years agoMerge change 23475 into eclair
Android (Google) Code Review [Tue, 1 Sep 2009 20:12:00 +0000 (13:12 -0700)]
Merge change 23475 into eclair

* changes:
  Return appropriate URI for PICKER intents.

14 years agoMerge change 23177 into eclair
Android (Google) Code Review [Tue, 1 Sep 2009 20:08:33 +0000 (13:08 -0700)]
Merge change 23177 into eclair

* changes:
  Refactor the way we track selected tab in ViewContactActivity.

14 years agoReturn appropriate URI for PICKER intents.
Evan Millar [Mon, 31 Aug 2009 19:52:39 +0000 (12:52 -0700)]
Return appropriate URI for PICKER intents.

Based on under which authority the calling activity is asking, return
either a legacy style URI or new style URI as a result of a PICK
intent.

Change-Id: Icd7cf220c6355ff3fd14a5f9a39fc071aa7c0434

14 years agoMerge change 23458 into eclair
Android (Google) Code Review [Tue, 1 Sep 2009 18:40:43 +0000 (11:40 -0700)]
Merge change 23458 into eclair

* changes:
  Temporarily reverting to low-res Contacts tab artwork.

14 years agoTemporarily reverting to low-res Contacts tab artwork.
Daniel Sandler [Tue, 1 Sep 2009 18:10:09 +0000 (14:10 -0400)]
Temporarily reverting to low-res Contacts tab artwork.

Per http://b/2086871 - the hdpi artwork I put into the build previously are
illegible in the current version of the app.  External vendor is supposed
to deliver proper high-res artwork for these UI elements at some point, but
until that time, better to have low-res & legible art in place.

14 years agoMerge change 23379 into eclair
Android (Google) Code Review [Tue, 1 Sep 2009 17:49:57 +0000 (10:49 -0700)]
Merge change 23379 into eclair

* changes:
  Mark the VCard configuration strings untranslatable.

14 years agoMark the VCard configuration strings untranslatable.
Eric Fischer [Tue, 1 Sep 2009 00:38:51 +0000 (17:38 -0700)]
Mark the VCard configuration strings untranslatable.

These are internal tokens, not display strings that need translation.

14 years agoModify string
Daisuke Miyakawa [Mon, 31 Aug 2009 23:37:54 +0000 (08:37 +0900)]
Modify string

14 years agoExpandable structured support, organize editors, much more.
Jeff Sharkey [Sun, 30 Aug 2009 01:19:20 +0000 (18:19 -0700)]
Expandable structured support, organize editors, much more.

Wrote expandable editor support, so that StructuredName and
StructuredPostal could be displayed compactly on smaller
screens, but still expanded to edit all possible fields.

Reorganized editors to directly inflate classes instead of
using ViewHolder pattern.  This helps us prepare for focus
saving logic coming soon, and also required that each data
row have getViewId() to be uniquely identified.

When editing EAS contacts, don't use separate types for
"Email 1", "Email 2", etc, and instead use a single overall
limit on type-less values.  (This is dependant on
http://b/2065904 being resolved.)

Defined fallback "on-phone" account separately to prevent
confusion with Google account, also limited the possible
data types that could be entered.

Suspend aggregation while persisting RawContacts updates
to prevent possible re-aggregation and user confusion when
returning to View activity.  Also correctly generate
AggregationExceptions when inserting new RawContacts under
an existing aggregate.  Fixes http://b/2087517

When inserting Google contacts, add GroupMembership for
"My Contacts" to help visibility, fixing http://b/2070479

Don't reprompt for account when rotating during INSERT,
fixing http://b/2084585 and hide editor until finished
with async loading.  Ensure that specific rows exist so
we always have StructuredName to edit, and have waiting
Phone and Email fields for INSERT.

Used better method of creating generic ArrayList/HashMap.

14 years agoEnable vCard export world-wide
Daisuke Miyakawa [Sun, 30 Aug 2009 23:09:07 +0000 (08:09 +0900)]
Enable vCard export world-wide

14 years agoWhen dismissing Fast-Track, don't let touch fall through.
Jeff Sharkey [Sat, 29 Aug 2009 23:07:46 +0000 (16:07 -0700)]
When dismissing Fast-Track, don't let touch fall through.

Instead of being NOT_TOUCH_MODAL and relying on the window
manager to mark ACTION_OUTSIDE touch events, detect the
events ourselves so we don't let them fall through to any
window behind us.

Also clean up some verbose logcat when loading resources.

14 years agoRefactor the way we track selected tab in ViewContactActivity.
Evan Millar [Fri, 28 Aug 2009 16:31:57 +0000 (09:31 -0700)]
Refactor the way we track selected tab in ViewContactActivity.

Change-Id: I68ca5a7d7ea3897f2d724f465787fb9c45ffc06f

14 years agoMerge change 23139 into eclair
Android (Google) Code Review [Fri, 28 Aug 2009 20:16:11 +0000 (13:16 -0700)]
Merge change 23139 into eclair

* changes:
  High-resolution (hdpi) artwork from TAT for Contacts.

14 years agoArmor string format tokens with translation placeholders.
Eric Fischer [Fri, 28 Aug 2009 19:56:58 +0000 (12:56 -0700)]
Armor string format tokens with translation placeholders.

Change-Id: I4644b4d47c553ea89dc935059746f908f73aa3d4

14 years agoHigh-resolution (hdpi) artwork from TAT for Contacts.
Daniel Sandler [Fri, 28 Aug 2009 18:51:55 +0000 (14:51 -0400)]
High-resolution (hdpi) artwork from TAT for Contacts.

14 years agoSpecific columns for Fast-Track, hide missing social, call.
Jeff Sharkey [Fri, 28 Aug 2009 00:05:59 +0000 (17:05 -0700)]
Specific columns for Fast-Track, hide missing social, call.

Request explicit columns needed for Fast-Track, since "null"
projection no longer returns all needed columns.  Hide the
medium header when no social snippet is present.  Finally,
initiate a direct call instead of simply dialing.

Fixes http://b/2084086 and http://b/2072448

14 years agoMerge change 22961 into eclair
Android (Google) Code Review [Thu, 27 Aug 2009 21:34:25 +0000 (14:34 -0700)]
Merge change 22961 into eclair

* changes:
  Fix strings whose apostrophes were eaten because of the lack of a backslash.

14 years agoFix strings whose apostrophes were eaten because of the lack of a backslash.
Eric Fischer [Thu, 27 Aug 2009 20:52:11 +0000 (13:52 -0700)]
Fix strings whose apostrophes were eaten because of the lack of a backslash.

Change-Id: I259c1cd3fb1d2a65db03b4813dc45ab4aafb5632

14 years agoFix bug 2082102.
Evan Millar [Thu, 27 Aug 2009 20:17:39 +0000 (13:17 -0700)]
Fix bug 2082102.

Clear image fetch handler messages in onFinish().

Change-Id: I6630ee4600a0479c03ca92698792eaea0eedab74

14 years agoIteration on Fast-Track, new assets drop, account menu icon.
Jeff Sharkey [Mon, 24 Aug 2009 05:13:04 +0000 (22:13 -0700)]
Iteration on Fast-Track, new assets drop, account menu icon.

New asset drop for Fast-Track with new style disambig with
"set default" checkbox, will be hooked up soon.  Cleanup of
legacy API references in some places.

Adjust action building to query against PackageManager,
which now brings in best-matching app icons.  Previously
the data provider needed to supply icons.  This solves the
case where people use third-party apps for SMS, etc.

We also use the ResolveInfo to populate the content
description for the track icons so that Fast-Track actions
use the system accessibility APIs.

14 years agoMerge change 22820 into eclair
Android (Google) Code Review [Wed, 26 Aug 2009 22:34:50 +0000 (15:34 -0700)]
Merge change 22820 into eclair

* changes:
  New minitab assets.

14 years agoNew minitab assets.
Evan Millar [Wed, 26 Aug 2009 22:09:02 +0000 (15:09 -0700)]
New minitab assets.

Add new minitab assets, and fix z-ordering so the selcted tab is always
drawn on top, and it's drop shadows bleed over onto adjacent tabs.

Change-Id: I100e20411972285675de42f356c201326c0386f6

14 years agoUse fasttrack badge in list view.
Evan Millar [Wed, 26 Aug 2009 15:46:54 +0000 (08:46 -0700)]
Use fasttrack badge in list view.

Right now the fasttrack badge is a private framework asset. This will
change soon when I create a custom fasttrack badge view.

Change-Id: Ibbcb2f691f4e3eb121ba9ea873194468bb4d4b3e

14 years agoUse new tab assets.
Evan Millar [Wed, 26 Aug 2009 17:35:24 +0000 (10:35 -0700)]
Use new tab assets.

Also make the ContactsActivityList activity draw it's own list
separators, so that it can *not* draw the when an A-Z divider is
visible.

Change-Id: I0755a2cbcb57d646d770003844e394ac0de753ac

14 years agoMerge change 22754 into eclair
Android (Google) Code Review [Wed, 26 Aug 2009 06:14:44 +0000 (23:14 -0700)]
Merge change 22754 into eclair

* changes:
  Temporarily remove summary counts from display groups UI.

14 years agoTemporarily remove summary counts from display groups UI.
Jeff Sharkey [Wed, 26 Aug 2009 06:13:16 +0000 (23:13 -0700)]
Temporarily remove summary counts from display groups UI.

The queries pulling these summary stats can be slow when
someone has thousands of contacts.  Will add back later once
we have better, faster solution.

14 years ago- Make Contacts app use new vCard handling codes
Daisuke Miyakawa [Mon, 24 Aug 2009 01:51:58 +0000 (10:51 +0900)]
- Make Contacts app use new vCard handling codes
- Enable "multiple vCard selection"

Internal issue id: 2030674

14 years agoMerge change 22311 into eclair
Android (Google) Code Review [Tue, 25 Aug 2009 21:48:04 +0000 (14:48 -0700)]
Merge change 22311 into eclair

* changes:
  Make the minitabs stretch to fit the available space.

14 years agoMake the minitabs stretch to fit the available space.
Evan Millar [Fri, 21 Aug 2009 03:30:12 +0000 (20:30 -0700)]
Make the minitabs stretch to fit the available space.

Change-Id: Ifd2b774b40e2831f4f2326c0fe9ebbb3e7d714d0

14 years agoChanged Fast-Track window flags so it avoids dim bug.
Jeff Sharkey [Tue, 25 Aug 2009 21:19:39 +0000 (14:19 -0700)]
Changed Fast-Track window flags so it avoids dim bug.

Fixes http://b/2077548

15 years agoMerge change 22565 into eclair
Android (Google) Code Review [Tue, 25 Aug 2009 05:08:36 +0000 (22:08 -0700)]
Merge change 22565 into eclair

* changes:
  Fixed up intent MIME-types, add Accounts menu, clean unused.

15 years agoMerge change 22499 into eclair
Android (Google) Code Review [Tue, 25 Aug 2009 05:08:16 +0000 (22:08 -0700)]
Merge change 22499 into eclair

* changes:
  Use new API for resolving Email addresses.

15 years agoFixed up intent MIME-types, add Accounts menu, clean unused.
Jeff Sharkey [Tue, 25 Aug 2009 03:46:23 +0000 (20:46 -0700)]
Fixed up intent MIME-types, add Accounts menu, clean unused.

Cleaned up <intent-filter> entries for INSERT_OR_EDIT and
EDIT to watch for more MIME-types after legacy change-over.

Finished clean-up from display groups by removing deprecated
edit sync groups UI, and unused menu.  Changed
ContactsListActivity to use XML-based menus and added an
"Accounts" link that replaces the edit sync groups.

Finally, hooked up the INSERT case to read extras from any
incoming intents to help with SHOW_OR_CREATE intent testing.

15 years agoUse new API for resolving Email addresses.
Jeff Sharkey [Mon, 24 Aug 2009 22:27:31 +0000 (15:27 -0700)]
Use new API for resolving Email addresses.

Also fix case where Fast-Track window would end up hanging
when the background query failed.

15 years agoSupport for Global Search Shortcut refresh and contact images.
Dmitri Plotnikov [Mon, 24 Aug 2009 18:42:47 +0000 (11:42 -0700)]
Support for Global Search Shortcut refresh and contact images.

15 years agoUse extra to exclude specific MIME-types for Fast-Track.
Jeff Sharkey [Sun, 23 Aug 2009 21:16:27 +0000 (14:16 -0700)]
Use extra to exclude specific MIME-types for Fast-Track.

This is used so that the header widget can hide the profile
icon when launched while already looking at the profile.

Also fixes http://b/2058751

15 years agoIteration on display groups UI, was neglected for awhile.
Jeff Sharkey [Sun, 16 Aug 2009 07:12:48 +0000 (00:12 -0700)]
Iteration on display groups UI, was neglected for awhile.

Switched to using Accounts metadata provided through
Sources cache.  Also added long-press and menu item to serve
as our "edit sync groups" in the same UI.

Need to iterating to show all accounts regardless of group
existance, and persist DEFAULT_SHOULD_SYNC values.

15 years agoAlways re-read RawContacts._ID before editing.
Jeff Sharkey [Sun, 23 Aug 2009 06:49:02 +0000 (23:49 -0700)]
Always re-read RawContacts._ID before editing.

In cases where the user hasn't selected a tab, and there is
no "All" tab present (a single RawContact), this code would
try reading details for the second tab that didn't exist.

This fixes http://b/2072410

15 years agoHandle saving and communicating selected tab between View/Edit activities.
Evan Millar [Thu, 20 Aug 2009 00:20:49 +0000 (17:20 -0700)]
Handle saving and communicating selected tab between View/Edit activities.

EditContactActivity now accepts intents with raw_contacts instead of
contacts. In addition it reports back which raw_contact was selected on
exit.

ViewContactActivity now saves and restores which raw_contact was
currently being viewed, and uses the raw_contact reported back from
EditContactActivity. The overall effect is when moving from View->Edit
or Edit->View the selected tab doesn't change.

15 years agoEnable import_all by default. Each career should disable if it does not want the...
Daisuke Miyakawa [Fri, 21 Aug 2009 13:17:34 +0000 (22:17 +0900)]
Enable import_all by default. Each career should disable if it does not want the feature.

15 years agoMerge goog/eclair-dev into goog/eclair
Jeff Hamilton [Fri, 21 Aug 2009 07:43:47 +0000 (02:43 -0500)]
Merge goog/eclair-dev into goog/eclair

15 years agoFix the build.
Jeff Hamilton [Fri, 21 Aug 2009 04:58:13 +0000 (23:58 -0500)]
Fix the build.

15 years agoSwitch name back to Contacts for now.
Jeff Hamilton [Thu, 20 Aug 2009 16:51:30 +0000 (11:51 -0500)]
Switch name back to Contacts for now.

15 years agoMerge change 22020 into eclair-dev
Android (Google) Code Review [Thu, 20 Aug 2009 20:59:42 +0000 (13:59 -0700)]
Merge change 22020 into eclair-dev

* changes:
  New minitab assets, and dithering fix.

15 years agoMerge change 22023 into eclair-dev
Android (Google) Code Review [Thu, 20 Aug 2009 18:51:00 +0000 (11:51 -0700)]
Merge change 22023 into eclair-dev

* changes:
  Fixing the Split contact UI

15 years agoAdd photos back to Favorites and others.
Jeff Hamilton [Thu, 20 Aug 2009 16:47:38 +0000 (11:47 -0500)]
Add photos back to Favorites and others.

15 years agoFixing the Split contact UI
Dmitri Plotnikov [Thu, 20 Aug 2009 01:03:00 +0000 (18:03 -0700)]
Fixing the Split contact UI

15 years agoNew minitab assets, and dithering fix.
Evan Millar [Thu, 20 Aug 2009 00:36:33 +0000 (17:36 -0700)]
New minitab assets, and dithering fix.

The dithering flag we were setting in the layout was being overriden. We
are now setting it directly on the StateListDrawable in code.

15 years agoUpgrading Call Log and Call Detail views to the new API.
Dmitri Plotnikov [Thu, 20 Aug 2009 00:38:04 +0000 (17:38 -0700)]
Upgrading Call Log and Call Detail views to the new API.

15 years agoFix the source icons when viewing a contact.
Jeff Hamilton [Wed, 19 Aug 2009 23:03:01 +0000 (18:03 -0500)]
Fix the source icons when viewing a contact.

15 years agoMerge change 21855 into eclair-dev
Android (Google) Code Review [Wed, 19 Aug 2009 18:23:00 +0000 (11:23 -0700)]
Merge change 21855 into eclair-dev

* changes:
  Removing reference to MAX_SUGGESTIONS

15 years agoHSDPA (High-Speed Downlink Packet Access) Contacts IMEI and MEID
Li Zhe [Thu, 30 Jul 2009 06:08:42 +0000 (14:08 +0800)]
HSDPA (High-Speed Downlink Packet Access) Contacts IMEI and MEID

Use PhoneType instead of Network type for IMEI or MEID
- change SpecialCharSequenceMgr to use PhoneType for the displaying
  IMEI for UMTS, MEID for CDMA

15 years agoRemoving reference to MAX_SUGGESTIONS
Dmitri Plotnikov [Wed, 19 Aug 2009 02:00:01 +0000 (19:00 -0700)]
Removing reference to MAX_SUGGESTIONS

15 years agoUpdate minitab assets and behavior to match spec.
Evan Millar [Fri, 7 Aug 2009 16:12:49 +0000 (09:12 -0700)]
Update minitab assets and behavior to match spec.

15 years agoUse AccountManager for details, handle INSERT cases.
Jeff Sharkey [Wed, 12 Aug 2009 18:28:53 +0000 (11:28 -0700)]
Use AccountManager for details, handle INSERT cases.

Connected Sources to use AccountManager and inflate details
through registered sync adapters.  Each ContactsSource now
has a "level" of inflation, since deeper levels aren't
always needed right away.  Several places we're making
blocking calls into other processes that are tied to the UI
thread.  (This would take a large effort to fix.)

Turned most background Edit activity operations into
WeakAsyncTask, which helps finish background tasks while
preventing leaked Contexts.  This allows us to hold the UI
thread while saving, but release it just before ANR,
allowing the background operation to complete.

Enabled INSERT case, both from overall list and when already
editing an aggregate.  Finally, cleaned up the manifest
intent-filters to directly match authorities.

15 years agoDon't crash if an async photo load comes in after leaving the contacts list activity.
Jeff Hamilton [Tue, 18 Aug 2009 20:10:08 +0000 (15:10 -0500)]
Don't crash if an async photo load comes in after leaving the contacts list activity.

15 years agoam d93e35c2: (-s ours) Import revised translations. DO NOT MERGE
Eric Fischer [Tue, 18 Aug 2009 18:00:31 +0000 (11:00 -0700)]
am d93e35c2: (-s ours) Import revised translations.  DO NOT MERGE

Merge commit 'd93e35c2bdf5d20ee6f7126d57554f123a36b21c' into eclair

* commit 'd93e35c2bdf5d20ee6f7126d57554f123a36b21c':
  Import revised translations.  DO NOT MERGE

15 years agodo not merge: cherry-picked 0d4cf6265fcbba90a87a1165a800b697e737d847 from master
David Brown [Fri, 14 Aug 2009 20:46:16 +0000 (13:46 -0700)]
do not merge: cherry-picked 0d4cf6265fcbba90a87a1165a800b697e737d847 from master

15 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Mon, 17 Aug 2009 20:14:44 +0000 (13:14 -0700)]
Import revised translations.  DO NOT MERGE

15 years agoaccounts api change
Fred Quintana [Mon, 17 Aug 2009 04:04:40 +0000 (21:04 -0700)]
accounts api change

15 years agodo not merge: cherrypicked 2811b3eaca1ac1cf27a7d63aa9f5c4ec7723ff59 from master branch
Fred Quintana [Mon, 17 Aug 2009 03:43:28 +0000 (20:43 -0700)]
do not merge: cherrypicked 2811b3eaca1ac1cf27a7d63aa9f5c4ec7723ff59 from master branch

15 years agodo not merge: cherrypicked 2811b3eaca1ac1cf27a7d63aa9f5c4ec7723ff59 from master branch
Fred Quintana [Sun, 16 Aug 2009 04:49:59 +0000 (21:49 -0700)]
do not merge: cherrypicked 2811b3eaca1ac1cf27a7d63aa9f5c4ec7723ff59 from master branch

15 years agoRevert "add legacy accounts support"
Jeff Hamilton [Fri, 14 Aug 2009 05:42:41 +0000 (22:42 -0700)]
Revert "add legacy accounts support"

This reverts commit 8f7fcfa58aee626318bd61ab9d08ba5d53b1c10a.

15 years agoMerge change 21231 into eclair-dev
Android (Google) Code Review [Fri, 14 Aug 2009 03:43:41 +0000 (20:43 -0700)]
Merge change 21231 into eclair-dev

* changes:
  Remove reference to missing bindStatic() method.

15 years agoRemove reference to missing bindStatic() method.
Jeff Sharkey [Fri, 14 Aug 2009 03:42:46 +0000 (20:42 -0700)]
Remove reference to missing bindStatic() method.

15 years agoadd legacy accounts support
Fred Quintana [Thu, 13 Aug 2009 17:51:33 +0000 (10:51 -0700)]
add legacy accounts support

15 years agoShow tab icons in view activity.
Evan Millar [Tue, 11 Aug 2009 18:12:00 +0000 (11:12 -0700)]
Show tab icons in view activity.

-Add an asynchronous request api to Sources, to allow for
asynchronous binding of autheticator data to the Sources object. The old
getInstance() api has been changed to getPartialInstance(), as not all
clients of Sources need the authenticator data bound.

-BaseContactProvider uses Sources to get the source icons. This behavior
still needs to be added to EditContactActivity.