History log of /packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
34b1d213ae906b84570ae33bdf0f3b6b245bb646 15-Nov-2012 Yorke Lee <yorkelee@google.com> Merge "Format phone number in QuickContactsActivity" into jb-mr1.1-dev
ae87a56c512410464116a16e519558d68e66acab 13-Nov-2012 Yorke Lee <yorkelee@google.com> Format phone number in QuickContactsActivity

Bug: 7230016

Change-Id: I0b28e131ee35d8948a574cab9b2a1c849edfc162
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
4c2909075a8271b9478506358c15e55fd458e0cc 13-Nov-2012 Chiao Cheng <chiaocheng@google.com> Fix incorrect tab highlight in QuickContactActivity.

Selected highlight is on wrong tab after rotation. Inherently, view pager
remembers the last selected tab. But the highlight is done outside the
view pager and logic was missing to highlight properly when re-creating
from rotation.

Bug: 7206995
Change-Id: Ic016ddb743c323beba71ca95a0a1ae08566a7b1d
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
9d85a2a39a4b9a0bacee8d25b2830784caf8551c 08-Nov-2012 Yorke Lee <yorkelee@google.com> Changed Quick Contacts details Button to ImageView

Removed unnecessary button to eliminate accessibility
confusion

Bug: 7434869
Change-Id: Ib503cde9a04566d8e086bb3671868f4a8059d0be
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
851222a96b5d68602fb361ea3527101e893f67e3 21-Jun-2012 Maurice Chu <mochu@google.com> Added thin object layer around contact data

This refactoring abstracts out the need to directly
refer to Contacts database columns throughout the code. Instead,
all of this information is retained in getter/setter methods
within the Contact, RawContact, and DataItem classes and
sub-classes.

ContactLoader.Result class has been pulled to the top level as
the Contact class.

The Entity class has been removed and replaced with a RawContact
class, with getters/setters to raw contact information.
Renamed EntityDelta to RawContactDelta for better understandability
as well as adding getters/setters for specific fields in the
ValuesDelta nested class within EntityDelta. EntityDeltaList
and EntityModifier have been renamed to RawContactDeltaList and
RawContactModifier with the methods using the RawContact class
directly rather than the Entity class.

Data items for a raw contact are represented by a DataItem object
with specialized getters/setters for subclasses of DataItem.
(e.g., EmailDataItem, PhoneDataItem. etc.). DataItem is a wrapper
around ContentValues. This abstracts away the ContactsContract
column fields into getters/setters.

The above refactoring is accompanied with changes throughout the
codebase to use the new Contact, RawContact, and DataItem classes.

Change-Id: I31c1dccd724e9652f9d0af78ca81feb6c5acd71d
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Global import order fix.

Changed import order to be in accordance with style guide:
http://source.android.com/source/code-style.html#order-import-statements

Static imports will be placed at the top since most existing files used that
convention. It is also a style that can be handled by both eclipse and intellij.

Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
45ee872fe7be69c6b3f0c59167eecd11af467812 22-May-2012 Makoto Onuki <omakoto@google.com> Don't send view notification before showing quick contact

Instead, do this in the second load. This directly affects the quick contact
startup time.

Bug 6529921

Change-Id: Ief7bda9bd32cb4be0c86c4b79efb35da812721dc
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
dfe8cc82e8aa31929bb85eb68b7de3492b875d57 18-May-2012 Makoto Onuki <omakoto@google.com> Tweak quick contact startup

Start the loader before inflating the layout.

Layout inflation is a CPU bound operation + file system
access if the layout isn't on the filesystem cache.

This CL increases the chance (unfortunately it's not 100%) for
the layout inflation and the data load to overlap.

Also added "null stopwatch" to easily disable stopwatch.

Bug 6434853

Change-Id: I8be2d68bec3997c967633abe7726be7ff4a61c89
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
2d3519b9d7a720705fce0fb18cdbed4fd6a2962c 18-May-2012 Daniel Lehmann <lehmannd@google.com> Merge "De-jank quick contact animation" into jb-dev
3a53c73f04eef94b311bb0469c1d0ca7059c0411 18-May-2012 Daniel Lehmann <lehmannd@google.com> De-jank quick contact animation

Bug:6508325
Bug:6501917

This change ensures the layer allocation does not happen during the animation.
This change also modifies the way the background fade is implemented to
make it faster (halves the required fillrate, which is necessary given we
are falling back to GPU composition in this particular case.)

Change-Id: I27023ad1a5af06d2d2036baed24c2f47deb85184
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
802fa62aac8edc92be136b8227ccafa53cd774fb 16-May-2012 Makoto Onuki <omakoto@google.com> Make quickcontact launchable with am

Now it's launchable with:

adb shell am start \
-a com.android.contacts.action.QUICK_CONTACT \
-d content://com.android.contacts/contacts/lookup/...

Bug 6434853

Change-Id: I41868dcb61a602b02c4de9b6587ed265c975552d
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
fc0a89fdb1e0bfe5c47e733f867ca520e117316b 15-May-2012 Makoto Onuki <omakoto@google.com> Speed up shortcut launch performance

Apparently the framework first needs to starts the contacts provider just to
resolve the content-type for a shortcut, which is a heavy process involving
a lot of disk I/O.

Remove this by pre-setting the content type to shortcuts.

This will improve the shortcut launch performance from roughly 3.45 seconds to
2.35 seconds on a prime with a test contact in extreme cases, i.e. after:
adb shell kill `pid acore` `pid contacts` ; \
adb shell "sync; echo 3 > /proc/sys/vm/drop_caches"

Also pre-start the provider in Application.onCreate() in order to maximize
the overlap between the app initialization and the provider initialization.
This may or may not help the regular app launch performance too.

Bug 6434853
Bug 6476832

Change-Id: Ia8dcd877dcda2cac562bec18442d7fc019a08ad2
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
2426cb015ba4cb679a525bd1ffe223527375468c 11-May-2012 Daniel Lehmann <lehmannd@google.com> Fix some QC issues

Bug:6449630

Change-Id: I5aec3ffdd3032bd3d037a053f5cb86fc9f0f16e0
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
d1e501105d1ce2fb3e286635d0b2195e77e000af 07-May-2012 Daniel Lehmann <lehmannd@google.com> Tell the Launcher not to animate QuickContact

Bug:6408369
Change-Id: I68c1330f81dbfd2d3eb60be8431f2460e185f2f5
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
d9662a844162bb99df65e7976dfa335e64ca5440 25-Apr-2012 Daniel Lehmann <lehmannd@google.com> Fix crash in QC during orientation change

- Also made the ContactLoader a little more robust. The cached result
is now a new instance so that it is recognized by the LoaderManager
as new data

Bug:6356584

Change-Id: I4e2eca92501308a8724b00771038555fa59b3260
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
8ca93ed0938e00ee94b03e6d609895593cfdbdbd 23-Apr-2012 Adam Powell <adamp@google.com> Navigation adjustment for updated design guidelines and QuickContact cards

Bug 6362611

Change QuickContactActivity to task affinity "" to keep it from starting
orphaned/confused tasks.

Launch ContactDetailActivity in the same task from QuickContactActivity.

Launch app-supplied intents from QuickContactActivity in the same task.

Clear the QuickContactActivity task when launching it from a launcher
shortcut or widget. This prevents activities launched from the
finished QuickContactActivity from hanging around as the root and
failing to be reset.

Remove app-specific Up navigation code from ContactDetailActivity and
let the JB framework handle it automatically.

Change-Id: I4abebcb135b2d3269039b3307a49115c13528295
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
9815d7f98baf80ce51b0cf1f01f48a3dbb9a9db9 17-Apr-2012 Daniel Lehmann <lehmannd@google.com> Cache the result of the ContactLoader across instances.

Change-Id: I2c7d1c07720118418fbefb751beeaa812e568325
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
8a0dd0f08ab11e9c6dad386e4411aeeb4c0cd73f 13-Apr-2012 Maurice Chu <mochu@google.com> Made default items show first in contact details/quick contact lists

Bug:5779998
Change-Id: If4c3ff5b8b332dccb0f07fe1662832b875233c44
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
ee287e9a7617fc38119a026f7e802f6d7d47113c 07-Apr-2012 Josh Gargus <jjosh@google.com> Reduce jank in QuickContactActivity dismissal.

Wait for final frame of dismissal animation to be drawn before
calling Activity.finish(). Also, handle the background transition
ourselves instead of using the "backgroundDimEnabled" property;
this saves us one extra overdraw on the entire screen.

Bug: 6209669
Change-Id: Ie1e295755185f15b5d5326050cbd990563860a6f
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
6f5557e3dc3cd12182026bdfea17b15d4d9b7dfc 21-Mar-2012 Josh Gargus <jjosh@google.com> Improve frame-rate of quick-contact opening animation.

Fix consists of putting the quick-contact into a hardware layer for
the duration of the animation.

Rename AnimationUtils to SchedulingUtils to avoid conflict with
framework class of the same name.

Bug: 6000249
Change-Id: Ie627ddb947582b7860f5bd0de30484c1d1d4f428
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
9758a92fac3e9f64892d893c992f6020d7fe3bfd 09-Mar-2012 Josh Gargus <jjosh@google.com> Fade photos in contact-details and quick-contacts.

Introduces new helper class, ImageViewDrawableSetter, which remembers
the previously-set drawable, so it can transition from that to a new
one.

Change-Id: Ie6ee6d5ccc376cc9d5b7aa945f2622b173bf09e8
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
9daca14706f3699c9e9d46dfb522132fc566e57e 20-Dec-2011 Daniel Lehmann <lehmannd@google.com> Show presence in QuickContacts and remove "CHAT USING" for consistency

- Also cleaned up some unused variables
- Unified QuickContacts and contact card a bit more

Bug:5779951

Change-Id: I64a846f03250e6a94f7ab063b8fedc509afeef19
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
cb8d73fc8ea538d0b63dd77210c05c5b8de32f03 16-Dec-2011 Daniel Lehmann <lehmannd@google.com> Use ContactLoader in QuickContacts

Bug:5683257 Make QuickContact work with directory contacts
Bug:5276725 QuickContact needs to launch a view notification intent

Change-Id: Ia66200a0367c29617ba6ac06d82354ebe316ea9c
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
90921b3bfd9b3492a19a5fbbf6e0309b97a32425 17-Oct-2011 Daniel Lehmann <lehmannd@google.com> Don't declare package-listener in Manifest but instead in code.

Bug:5149613
Change-Id: Iea0e40af98dfe9bd70ce5fcaac35a4b5361d5756
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
ee05dcdd4b066ad909322c10919fb1812214673b 06-Oct-2011 Katherine Kuan <katherinekuan@google.com> Cleanup of chat capability icon and primary icon in DataKind

- Add content description to chat capability icon for
accessibility

- Remove primary icon from DataKind because we don't display
it anymore in the UI (it's an unused field since we only
display secondary action icons now)

Bug: 5416674
Change-Id: I6587dd9186af68b0e794d3e73cbc3dad9fdac332
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
ecfc26c3f9495f1a4efed69a1582ff2b0deb2c71 13-Sep-2011 Daniel Lehmann <lehmannd@google.com> New avatars

Bug:5074147

Change-Id: I583d22c63a7b617567c523efeed292ae1e2be7e4
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
73c341f8b174782ab7a42fc4767f67168b6916ee 29-Aug-2011 Makoto Onuki <omakoto@google.com> Use THREAD_POOL_EXECUTOR when loading a contact

Checked other usescases too, but there are no other ones that're obviously
changeable.

Bug 5224505

Change-Id: I9703400e4a93f18e014fcd0e4386374eb0658548
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
1792b08c500ed528e7d21401affd936b3a7b3dc6 24-Aug-2011 Daniel Lehmann <lehmannd@google.com> Fix various Quick Contact visuals

Also fixed a bug where the secondary action can be tapped even though
it doesn't exist (crashes)

This also fixes pushed states, which have been filed a couple of times

Bug:5137515

Change-Id: I810d12a79f0088a0770a0eaf9225fe7906ebd8e7
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
5ff239cbeffdf0118b9dbc19eece9c66d1272c5c 08-Aug-2011 Daniel Lehmann <lehmannd@google.com> Remove some TODOs and imports

Change-Id: If6e693569a89201bce2bfcf481ece6812e30906e
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
f31df5d850fd0c10d9da4cd356f944c962fb44bb 03-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Have a chat icon inside IM tab

Bug: 5098861
Change-Id: Ib37f47a457f2245e3e1cebf95773bbd14641882c
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
10d7df7bab8c332744fad64b9167c2ef061070e4 30-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show QuickContact in front of soft input

Bug: 5092171
Change-Id: I112c9e82d6c55bc4740f9447771b2cbe96fdf8b7
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
81281eefd5aaf339cbfa080ddfa6c6f63caca71a 29-Jul-2011 Katherine Kuan <katherinekuan@google.com> Unknown contacts are missing "up" affordance on contact card

- Contacts without a name cause the ContactDetailActivity to have
a blank title and therefore no "up" affordance.

- Use "(no name)" instead of blank or "(Unknown)" and make it
consistent across contact card, contact list, contact tile adapter,
and quick contacts

- Fix NPE when adding social widget for contact with no display
name

Bug: 5061950
Bug: 5096795
Change-Id: Id242e0f6d8bfe835d44be448129fddadd146fdb6
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
2b3f3c54d3beb017b2f59f19e9ce0ecc3e039dbc 27-Jul-2011 Dave Santoro <dsantoro@google.com> App changes for account types with data sets.

This is primarily a replacement of the Android Account object in most
parts of the app with a new AccountWithDataSet object that extends
Account (by adding an additional attribute, the data set).

This also includes a major refactoring of the AccountTypeManager,
both to allow it to handle data sets and to allow for
non-sync-adapter packages to be referenced by the sync adapters for
an account and registered as sources of contact data. Attributes of
the sync adapter that would typically come from the authenticator
can be parsed out of the Contacts XML for these packages.

Bug 5077096

Change-Id: I88f311c64eae78c88e9999bff6f7de8538e62157
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
edb576aab33efff623691a89ace3c76cb2ff12d1 28-Jul-2011 Daniel Lehmann <lehmannd@google.com> Implement new QuickContact design

- Also removes default-functionality
- Fixes the flicker when dismissing (Bug:5025418)

Change-Id: I46cf0fbdb2dcbf002612672e5e8f81a9b1ab6939
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
cde7389187ebc6816bd73d4704f1ca1b4ee39ac3 07-Apr-2011 Jeff Sharkey <jsharkey@android.com> Move QuickContact to Activity instead of Window.

QuickContact has traditionally used a Window to show a bubble with
callout centered around a target area. This change moves away from
private Window APIs, and instead creates FloatingChildLayout to layout
the bubble. Using onLayout() is more flexible than a PopupWindow or
Dialog, since it gives us access to getWindowVisibleDisplayFrame() to
correctly handle system windows. (Similar to FLAG_LAYOUT_INSET_DECOR.)

Changes background Drawable to use state_first and state_last to select
above/below callout arrow. Also moves to using setLevel() to set arrow
horizontal location.

Removes recycling chiclet code, and brings in Guava library.

Bug: 3362647
Change-Id: Iae953bae71db76e91e05996fe4c0dcea38bb446f
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
b4da2cd498c4f7d3db22d69bc41baf0ebdbcb6bc 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing window closing animation in QuickContact.

Bug: 3350061
Change-Id: If19ee0c2d539836aabfdc1e0783e33f07288a754
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
6eebf9ba47d5208a67f71d6b609765ef5d47d429 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in QuickContact

Bug: 3337036
Change-Id: I4f01e7a34ad87656bcdaa19bd2e499361448261d
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
69e82441e5fc4306a66d4f803240a544acade044 19-Nov-2010 Daniel Lehmann <lehmannd@google.com> New visuals and test for QuickContact

Bug:3172860
Bug:2591163

Change-Id: I5af7bf99481c38c6b0ad62b8f1c70b04ce930d1e
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java
72af89f9e497bb8ef54fe3deeec7e8477d192242 19-Oct-2010 Daniel Lehmann <lehmannd@google.com> Refactorings

package quickcontact:
- Newly created. Contains all quickcontact related files

package editor:
- Renamed GenericEditorView to FieldEditorView
- Renamed *ContactEditorView to *RawContactEditorView

Change-Id: I43c1bd4184f8423e1ab3b81339d512bde46cfea9
/packages/apps/Contacts/src/com/android/contacts/quickcontact/QuickContactActivity.java