OSDN Git Service

android-x86/packages-apps-Contacts.git
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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

15 years agoMerge change 21116 into eclair-dev
Android (Google) Code Review [Thu, 13 Aug 2009 17:52:03 +0000 (10:52 -0700)]
Merge change 21116 into eclair-dev

* changes:
  Fix photo display in ContactsListActivity.

15 years agoFix photo display in ContactsListActivity.
Evan Millar [Thu, 13 Aug 2009 17:18:23 +0000 (10:18 -0700)]
Fix photo display in ContactsListActivity.

15 years agoMerge change 20978 into eclair-dev
Android (Google) Code Review [Wed, 12 Aug 2009 21:16:27 +0000 (14:16 -0700)]
Merge change 20978 into eclair-dev

* changes:
  Fix Null pointer for exchange contacts IM

15 years agoFix Null pointer for exchange contacts IM
Neel Parekh [Wed, 12 Aug 2009 19:57:12 +0000 (12:57 -0700)]
Fix Null pointer for exchange contacts IM

15 years agoRemoving support for primary phone/email on Contact.
Dmitri Plotnikov [Tue, 11 Aug 2009 22:53:08 +0000 (15:53 -0700)]
Removing support for primary phone/email on Contact.

15 years agoDon't crash when showing contact with invalid photo.
Jeff Sharkey [Tue, 11 Aug 2009 21:11:45 +0000 (14:11 -0700)]
Don't crash when showing contact with invalid photo.

Fixes http://b/2047492

15 years agoUnique strings for labels and actions, SMS as alternate.
Jeff Sharkey [Tue, 11 Aug 2009 18:00:22 +0000 (11:00 -0700)]
Unique strings for labels and actions, SMS as alternate.

To prepare for strings in various languages, make unique
strings for each combination of "action" and EditType, for
example, "Call home" and "Email work" as unique strings.

Also added iconAltRes and actionAltRes to handle alternate
actions on data rows, such as SMS for phone numbers.  These
changes allow Fast-Track to show correct labels.

15 years agoConnect photo and name editors, super primary dialog.
Jeff Sharkey [Tue, 11 Aug 2009 17:59:34 +0000 (10:59 -0700)]
Connect photo and name editors, super primary dialog.

This change connects up the photo and display name editors
to show the values from the selected RawContact.  This also
persists StructuredName.DISPLAY_NAME changes back.

Also connects up the long-press menu for selecting a
super-primary display name for an aggregate.

15 years agoSwitch edit UI to tabs, TYPE_ASSERT for version, cleanup.
Jeff Sharkey [Thu, 6 Aug 2009 04:02:37 +0000 (21:02 -0700)]
Switch edit UI to tabs, TYPE_ASSERT for version, cleanup.

Integrated with the tabs and header widget built by
emillar, kept separate from BaseContactCardActivity since
I'm handling EDIT/INSERT intents differently.  Added hooks
to pick primary photo/name from header.

Cleaned up the colorful testing UI, added padding to match
mocks, and initial pass at collapsed secondary area.  Added
back menu items and confirmation toast.

Changed to new TYPE_ASSERT ContentProviderOperation for
asserting RawContacts.VERSION number during updates.

15 years agoMerge change 20613 into eclair-dev
Android (Google) Code Review [Tue, 11 Aug 2009 16:35:20 +0000 (09:35 -0700)]
Merge change 20613 into eclair-dev

* changes:
  Make small tweaks to view contact card.

15 years agoremove the table name specifications, which no longer work with the view changes
Fred Quintana [Tue, 11 Aug 2009 03:39:26 +0000 (20:39 -0700)]
remove the table name specifications, which no longer work with the view changes

15 years agoMake small tweaks to view contact card.
Evan Millar [Fri, 7 Aug 2009 22:40:08 +0000 (15:40 -0700)]
Make small tweaks to view contact card.

-Fix bug in dialing a number from the view card.
-Update the primary number asset and positioning.
-Make the sms button unfocusable.

15 years agoImprove focus handling around ScrollingTabWidget.
Evan Millar [Tue, 4 Aug 2009 23:20:57 +0000 (16:20 -0700)]
Improve focus handling around ScrollingTabWidget.

When focus enters the tab widget the focus will always be directed to
the last focused tab, instead of selecting the "best" tab.

15 years agoRemoving dependency on the contacts/#/raw_contacts directory
Dmitri Plotnikov [Fri, 7 Aug 2009 00:24:34 +0000 (17:24 -0700)]
Removing dependency on the contacts/#/raw_contacts directory

15 years agoBring back Fast-Track with yummy assets and animations.
Jeff Sharkey [Tue, 4 Aug 2009 21:21:06 +0000 (14:21 -0700)]
Bring back Fast-Track with yummy assets and animations.

Fast-Track had been quite neglected, so brought it back up
to speed with ContactsContract changes.  Also rearranged
the Action launching logic to use ContactsSource.DataKind
for any icons and label generation.  Wrote slide animation
that looks awesome.

Added Fast-Track triggering to normal contacts list, since
it has photos now.  Also supports being launching in various
modes, which for now are three sizes.

15 years agoDialer: add onscreen "Dial" button.
David Brown [Wed, 5 Aug 2009 03:30:09 +0000 (20:30 -0700)]
Dialer: add onscreen "Dial" button.

Add a new "Dial" button, below the keypad (in portrait) or below the
"digits" widget (in landscape).  It does the exact same action as tapping
the digits widget, and its enabled/disabled state uses the exact same
logic that turns the digit widget green when it's OK to dial.

This is a partial fix for bug 1825144 (soft SEND/END keys in places other
than in-call),

The button has visibility GONE by default; it's enabled on a per-product
basis using a flag in config.xml.  (To enable this on devices that need
it, I'll separately check in resource overlay files in those other
projects)

For now the Dial button is just a regular button, with no special layout
or artwork. (But bug 1993282 is open to cover any future visual design
tweaks we might need.)

15 years agoMerge change 20074 into eclair-dev
Android (Google) Code Review [Wed, 5 Aug 2009 03:22:21 +0000 (20:22 -0700)]
Merge change 20074 into eclair-dev

* changes:
  Fix some px values to be dip so the text entry in dialer is the right size on non-HVGA screens.

15 years agoFix some px values to be dip so the text entry in dialer is the right size on non...
Jeff Hamilton [Wed, 5 Aug 2009 03:17:18 +0000 (22:17 -0500)]
Fix some px values to be dip so the text entry in dialer is the right size on non-HVGA screens.

15 years agoMerge change 9668 into eclair-dev
Android (Google) Code Review [Tue, 4 Aug 2009 23:20:36 +0000 (16:20 -0700)]
Merge change 9668 into eclair-dev

* changes:
  Single line phone/sms view list item.

15 years agoMerge change 9513 into eclair-dev
Android (Google) Code Review [Tue, 4 Aug 2009 21:20:23 +0000 (14:20 -0700)]
Merge change 9513 into eclair-dev

* changes:
  Delta parceling, valid types bugfix, INSERT parsing.

15 years agoSingle line phone/sms view list item.
Evan Millar [Tue, 4 Aug 2009 17:14:57 +0000 (10:14 -0700)]
Single line phone/sms view list item.

15 years agomerge from open-source master
Jean-Baptiste Queru [Tue, 4 Aug 2009 16:00:28 +0000 (09:00 -0700)]
merge from open-source master

15 years agoam 6b3da038: (-s ours) Import revised translations. DO NOT MERGE
Eric Fischer [Mon, 3 Aug 2009 23:45:20 +0000 (16:45 -0700)]
am 6b3da038: (-s ours) Import revised translations.   DO NOT MERGE

Merge commit '6b3da03863da9d7319cbaf2eeb6f554616fcd97b'

* commit '6b3da03863da9d7319cbaf2eeb6f554616fcd97b':
  Import revised translations.   DO NOT MERGE

15 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Mon, 3 Aug 2009 23:09:05 +0000 (16:09 -0700)]
Import revised translations.   DO NOT MERGE

15 years agoMerge change 9503 into eclair-dev
Android (Google) Code Review [Mon, 3 Aug 2009 23:19:44 +0000 (16:19 -0700)]
Merge change 9503 into eclair-dev

* changes:
  Extracts the header code from BaseContactCardActivity

15 years agoDelta parceling, valid types bugfix, INSERT parsing.
Jeff Sharkey [Mon, 3 Aug 2009 18:37:07 +0000 (11:37 -0700)]
Delta parceling, valid types bugfix, INSERT parsing.

Made EntityDelta and ValuesDelta directly Parcelable to
pass across configuration changes.  Moved the re-parenting
code to separate EntityDelta.mergeAfter() method.  Fixed
getValidTypes() bug that didn't handle typeOverallMax
in "unlimited" cases.  Wrote INSERT parsing code to merge
incoming extras bundle into a new or existing EntityDelta,
also handles any source constraints.

Initial hook-up of edit UI to persist changed data, only
shows first Entity because not connected to tabs yet.

15 years agoExtracts the header code from BaseContactCardActivity
Evan Millar [Thu, 30 Jul 2009 20:46:19 +0000 (13:46 -0700)]
Extracts the header code from BaseContactCardActivity

BaseContactCardActivity used to contain code for displaying the
contact card banner. As that is an element needed in other system
apps, it was extracted and made into a reusable widget in
com.android.internal.widget.

15 years agoRefactor "Augmented" to "Delta" to make meaning clearer.
Jeff Sharkey [Sun, 2 Aug 2009 02:11:04 +0000 (19:11 -0700)]
Refactor "Augmented" to "Delta" to make meaning clearer.

15 years agomerge from donut
Jean-Baptiste Queru [Mon, 3 Aug 2009 14:45:46 +0000 (07:45 -0700)]
merge from donut

15 years agoBulk of constraint enforcement code, "best" suggestions.
Jeff Sharkey [Thu, 30 Jul 2009 17:39:14 +0000 (10:39 -0700)]
Bulk of constraint enforcement code, "best" suggestions.

Wrote getValidTypes() which builds a list of EditTypes that
can be inserted given a AugmentedEntity state, which is our
mechanism for enforcing ContactsSource constraints.  This
also drives canInsert(), which provides the enabled state
for our "add" buttons.

This change also reintroduces "suggested" types, used to
pick the default EditType for newly added entries.  It picks
the first primary type that doesn't already appear, or
otherwise picks the last primary type.  (This gives us a
nice "add" transition down the list of possible types.)

Finally, this change connects all of this logic into the
UI, picking available labels and enabling "add" according
to any constraints.  Also wrote unit tests to verify the
above code is producing the expected results.  These tests
exercise the backbone of our constraint-enforcement logic.

15 years agoFixed VERSION check, persist changed values, IM changes.
Jeff Sharkey [Wed, 29 Jul 2009 04:12:43 +0000 (21:12 -0700)]
Fixed VERSION check, persist changed values, IM changes.

Moved the buildDiff() VERSION assertion to the first
operation, since otherwise the value has already changed
when we reach it.

Added the few lines needed to start persisting any edited
data.  Still need to write the back-off and retry when we
encounter a VERSION failure.

Cleaned up our hard-coded data types, added support for
StructuredPostal and IM editors.  Standardized the EditText
flags for IME between the sources.  Based on a pending
framework change, moved to using two fields for IM to mirror
how we handle TYPE values.

15 years agoam 9be3f5b6: Handle full-disk exceptions when viewing call log.
Jeff Sharkey [Sun, 2 Aug 2009 01:38:21 +0000 (18:38 -0700)]
am 9be3f5b6: Handle full-disk exceptions when viewing call log.

Merge commit '9be3f5b6135b4b48f65f87f1a221c1ab5d5b4f89'

* commit '9be3f5b6135b4b48f65f87f1a221c1ab5d5b4f89':
  Handle full-disk exceptions when viewing call log.

15 years agoHandle full-disk exceptions when viewing call log.
Jeff Sharkey [Fri, 10 Jul 2009 22:24:29 +0000 (15:24 -0700)]
Handle full-disk exceptions when viewing call log.

When the internal storage is full, resetNewCallsFlag() fails
and causes Contacts to crash.  Since this method is called
whenever the tab is opened, it makes the call log
inaccessible to users.  (We should always keep the phone in
a usable state, even when the disk is full.)

Because startUpdate() runs on a background thread, I'm
overriding the WorkerHandler used by AsyncQueryHandler to
wrap any calls in a try/catch block.

Also added a try/catch block around the code that updates
any missing contact details after a caller-ID query has
returned, which could also cause a crash when the user
switches to the call log tab.

Partially fixes http://b/issue?id=1966505

15 years agoAdd AugmentedEntity.buildDiff() code, with unit tests.
Jeff Sharkey [Tue, 28 Jul 2009 17:33:11 +0000 (10:33 -0700)]
Add AugmentedEntity.buildDiff() code, with unit tests.

Another step along the way to editing contacts, this change
implements building the ContentProviderOperations needed
to "diff" an existing Entity to match an edited state.

Most work is done by AugmentedValues.buildDiff(), which
builds the insert, update, or delete operation needed to
match its internal "after" state.  AugmentedEntity builds
up the list of all operations from its direct values and
any children.

When changes are made, an "enforcement" action is added to
verify that the RawContacts.VERSION matches the "before"
Entity.  If this test fails, someone else (probably a sync)
has touched the Contact, and our entire operation is rolled
back, allowing us to re-read the base Entity and retry.

This approach also handles inserting an entirely new
RawContact, which removes the need for separate create() and
save() methods in our edit UI.

Finally, two batches of unit tests have been added.  The
first batch verifies the Parcel'ing of AugmentedEntity
objects, which is used across configuration changes, and
when applying changes over a re-read Entity.  The second
batch verifies the expected ContentProviderOperations that
various buildDiff() calls should produce.

15 years agoCheckpoint of new edit contact UI, work in progress.
Jeff Sharkey [Wed, 22 Jul 2009 02:30:57 +0000 (19:30 -0700)]
Checkpoint of new edit contact UI, work in progress.

This change introduces several new concepts which are
summarized below.  One major change is a MMVC approach that
has two models: the structured Contacts data, and the
data-source constraints model.  Another is augmenting an
Entity using a specific set of actions.

First, each data source is defined through a ContactsSource
that describe how it handles data, both for rendering and
editing cases, such as the Data.MIMETYPE it handles, what
types are allowed, and the fields required for editing.  In
this change, ContactsSource objects for Google and Exchange
are hard-coded, but an initial XML version will need to be
finalized for supporting third-party apps that show custom
icons and strings.

Second, AugmentedEntity allows us to keep the edit changes
separate from the initial data and build a "diff" between
the current Entity state and the desired changes, which is
represented as a set of ContentProviderOperations.  If the
data changed while the user was editing, we can easily swap
in the new Entity and apply the edits on top.  In the worst
case, this may end up creating duplicated data, but won't
lose the users changes.

Finally, this change starts splitting the UI and modeling
code into different sub-packages.  The UI is split into
multiple ViewHolders to mirror the structure on screen.

There are dozens of TODOs littered throughout the code,
which I'm following up on shortly.  This is a checkpoint to
start a code review on the core structure.

15 years agoFirst pass at tabbed contact viewing.
Evan Millar [Tue, 21 Jul 2009 22:55:18 +0000 (15:55 -0700)]
First pass at tabbed contact viewing.

ScrollingTabWidget - This is a generic widget for displaying tab like
elements, that may not fit on the screen. The visual design for this
widget is still in flux.

BaseContactCardActivity - This is an abstract class that should be
extended by any Activity that displays information about a specific
contact and allows filtering on different RawContacts associated with
the contact. ViewContactActivity.java extends this class.
EditContactActivity will want to eventually. The abstract class
implements OnTabSelectionChangedListener and will get called on
onTabSelectionChanged() when a new tab is selected. This way the
activity can react to tab selection changes.

ViewContactActivity - This now extends BaseContactActivity.

15 years agoFix build breakage from framework constant change.
Jeff Sharkey [Fri, 31 Jul 2009 20:49:11 +0000 (13:49 -0700)]
Fix build breakage from framework constant change.

15 years agoam 2dfe98ab: Revert CNAP change to fix more serious Contact List issue
Paul Berman [Fri, 31 Jul 2009 04:21:45 +0000 (21:21 -0700)]
am 2dfe98ab: Revert CNAP change to fix more serious Contact List issue

Merge commit '2dfe98abcf9810e6d140e1e699fabc3b6e42a88a'

* commit '2dfe98abcf9810e6d140e1e699fabc3b6e42a88a':
  Revert CNAP change to fix more serious Contact List issue

15 years agoRevert CNAP change to fix more serious Contact List issue
Paul Berman [Tue, 28 Jul 2009 20:31:33 +0000 (16:31 -0400)]
Revert CNAP change to fix more serious Contact List issue

This fix was originally made to handle a case where a CNAP name would
not be logged correctly. However this breaks a more serious scenario
where adding a contact, placing a call to that contact, and then deleting
that contact would still show the name of the old contact in the log,
which is incorrect. Therefore, reverting until a better fix can be found.

15 years agoFix the displaying of names in ViewContactActivity.
Jeff Hamilton [Thu, 30 Jul 2009 17:57:49 +0000 (12:57 -0500)]
Fix the displaying of names in ViewContactActivity.

The cursor over the data items wasn't being reset to the before
first position before being iterated over to retrieve the data
rows.

15 years agomerge from donut
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:57:06 +0000 (14:57 -0700)]
merge from donut

15 years agoFix mime types after the aggregate -> contact renaming.
Jeff Hamilton [Wed, 29 Jul 2009 21:36:28 +0000 (16:36 -0500)]
Fix mime types after the aggregate -> contact renaming.

15 years agoSwitch back to the single 4 tab activity model.
Jeff Hamilton [Tue, 28 Jul 2009 15:20:31 +0000 (10:20 -0500)]
Switch back to the single 4 tab activity model.

15 years agoContacts: renaming Aggregates to Contacts
Dmitri Plotnikov [Tue, 28 Jul 2009 03:28:17 +0000 (20:28 -0700)]
Contacts: renaming Aggregates to Contacts

15 years agoRenaming Contacts to RawContacts
Dmitri Plotnikov [Mon, 27 Jul 2009 18:23:51 +0000 (11:23 -0700)]
Renaming Contacts to RawContacts

15 years agoreconcile korg/master into goog/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 18:43:55 +0000 (11:43 -0700)]
reconcile korg/master into goog/master

15 years agoMerge korg/donut into korg/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:47:27 +0000 (17:47 -0700)]
Merge korg/donut into korg/master

15 years agoupdate the permissions for the AccountManagerService
Fred Quintana [Thu, 23 Jul 2009 03:01:15 +0000 (20:01 -0700)]
update the permissions for the AccountManagerService

15 years agoFix issue 1795088 Improve audio routing code
Eric Laurent [Fri, 17 Jul 2009 18:52:06 +0000 (11:52 -0700)]
Fix issue 1795088       Improve audio routing code

Initial commit for review.

15 years agoRefactored to StructuredPostal and RES_PACKAGE.
Jeff Sharkey [Wed, 22 Jul 2009 02:30:15 +0000 (19:30 -0700)]
Refactored to StructuredPostal and RES_PACKAGE.

Matched framework change that refactored StructuredPostal
and RES_PACKAGE, also removal of Groups.PACKAGE_ID.

15 years agoFixed groups NPE when creating or editing contact.
Jeff Sharkey [Tue, 21 Jul 2009 22:13:34 +0000 (15:13 -0700)]
Fixed groups NPE when creating or editing contact.

Depending on the device state, mGroups may have not been
populated.  In this case, we ignore writing groups data.

This may cause data loss of group membership, so the
original bug has been repurposed to fix longer-term.

This fixes http://b/viewIssue?id=1975661

15 years agoapps/contacts: Pause and Wait changes
Reli Tal [Wed, 10 Jun 2009 20:48:00 +0000 (16:48 -0400)]
apps/contacts: Pause and Wait changes

Allow Pause and Wait characters to be used within the dial string for
a phone number. This implementation is CDMA specific and uses DTMF
tones to play post dial characters.

15 years agoam d5a1530f: Make the dialpad silent in "vibrate only" mode (bug 1984905).
David Brown [Tue, 21 Jul 2009 06:33:40 +0000 (23:33 -0700)]
am d5a1530f: Make the dialpad silent in "vibrate only" mode (bug 1984905).

Merge commit 'd5a1530f68c48075cd3df5c948b54ad34f059df1'

* commit 'd5a1530f68c48075cd3df5c948b54ad34f059df1':
  Make the dialpad silent in "vibrate only" mode (bug 1984905).

15 years agoMake the dialpad silent in "vibrate only" mode (bug 1984905).
David Brown [Mon, 20 Jul 2009 23:39:47 +0000 (16:39 -0700)]
Make the dialpad silent in "vibrate only" mode (bug 1984905).

This is a followup to https://android-git.corp.google.com/g/5438 (see bug
1839556) which made the dialpad silent if the phone was in "silent mode".

But "vibrate only" mode has a separate AudioManager constant:
RINGER_MODE_VIBRATE.  I need to check for that too.

15 years agoam 12402fef: (-s ours) Add VCardExporter functionality.
Daisuke Miyakawa [Mon, 20 Jul 2009 03:19:57 +0000 (20:19 -0700)]
am 12402fef: (-s ours) Add VCardExporter functionality.

Merge commit '12402fef0ac6b9ec9e614aaeb3f0c28d96ef47bd'

* commit '12402fef0ac6b9ec9e614aaeb3f0c28d96ef47bd':
  Add VCardExporter functionality.

15 years agoAdd VCardExporter functionality.
Daisuke Miyakawa [Sat, 18 Jul 2009 00:50:31 +0000 (17:50 -0700)]
Add VCardExporter functionality.

There is still no test. I'll work on cleaning up VCard related code in Eclair, so tests will be added at that time.

All configurations how file name is determined is configurable.

15 years agoresolved conflicts for merge of 2cc7c87b to master
Mike LeBeau [Fri, 17 Jul 2009 22:28:19 +0000 (15:28 -0700)]
resolved conflicts for merge of 2cc7c87b to master

15 years agoresolved conflicts for merge of 3474a71b to master
Mike LeBeau [Fri, 17 Jul 2009 22:08:22 +0000 (15:08 -0700)]
resolved conflicts for merge of 3474a71b to master

15 years agoAdd VCardExporter functionality.
Daisuke Miyakawa [Wed, 8 Jul 2009 05:36:11 +0000 (14:36 +0900)]
Add VCardExporter functionality.

There is still no test. I'll work on cleaning up VCard related code in Eclair, so tests will be added at that time.

All configurations how file name is determined is configurable.

15 years agoMake Contacts app use new VCard library
Daisuke Miyakawa [Fri, 17 Jul 2009 19:28:26 +0000 (12:28 -0700)]
Make Contacts app use new VCard library

This depends on the change https://android-git.corp.google.com/g/#change,6736

Conflicts:

15 years agoRemoving references to Organization.TYPE_HOME
Dmitri Plotnikov [Fri, 17 Jul 2009 18:00:26 +0000 (11:00 -0700)]
Removing references to Organization.TYPE_HOME

15 years agoRevise subtext for Contacts searchable one more time.
Mike LeBeau [Fri, 17 Jul 2009 16:58:31 +0000 (09:58 -0700)]
Revise subtext for Contacts searchable one more time.