History log of /packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7f2cfab08aa48758531ab525ede518190f79d37f 11-Apr-2013 Chiao Cheng <chiaocheng@google.com> Check if cursor is closed.

The rest of the class already checks the state of the cursor so this is
consistent with how the rest of the code behaves.

Bug: 7490630
Change-Id: I17321a651aa28814d0036d468b987ed9cfed9563
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
0761c6a148859f70a436c4dbfdb6dfeed88f48cb 11-Dec-2012 Chiao Cheng <chiaocheng@google.com> Fixing potential null assignment to primitive value.

Bug: 7713659
Change-Id: Ief42b4fae52fe057e02446ec76c33c3c5dc45656
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
0d5588da244d0992c3ff8f25d0875fdf95a8c644 27-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move AccountTypeManager to ContactsCommon.

Moving AccountTypeManager to ContactsCommon so it can be shared by Contacts
and Dialer.

Bug: 6993891
Change-Id: I9526ac7cda758290caecabfcaebe620238d8dd6b
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
ba09d4cc21d55181c1760e7994f0225939f4999d 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Use Objects from guava library.

Switch com.android.internal.util.Objects to com.google.common.base.Objects.

Bug: 6948882
Change-Id: I0adcff2e02e2dfbdfaa323ac72e0d42c1cbc979c
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
428f008513d1591cc08fcfe2cf0c9237fb313241 14-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies of AccountTypeManager into ContactsCommon.

Moving dependencies in preparation to move AccountTypeManager.

Bug: 6993891
Change-Id: I804cdbe64b9b8111ed286037943d593e11dc4044
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.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/group/GroupBrowseListAdapter.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/group/GroupBrowseListAdapter.java
db27b4b16acc21cd1fb26fb5430d3f34f1fc1805 30-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show group headers correctly

- have the list's top padding inside the first group header so
that the list shows correct fading effect on top
- have a header divider at the bottom of the header itself
- fix text alignment so that it looks same as the "All contacts"
list

Bug: 5233999
Change-Id: I2ea24b76cd2b2b3240ff3a9b705b7d783cacebee
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
deddb487d7596a12b2ec5fdcb0e8054c99fd3185 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing group icons

Bug: 5186302
Change-Id: I07916be6dabfe4cc416cd4e607c08a14da3f3039
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
08c87460331cbab92e94d96b704bd8f713a65202 10-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Contact picker/group list pixel-perfect

There are still a few issues to be fixed around picker
stuff, but it looks basically fine enough.

- fix misc padding issues around contact listing itself
- introduce conditional padding for phone search view to keep
top padding consistency
- keep consistency between group and contact listing
- remove "groups per account" count
- stop showing quick scroll bar in group list

Bug: 5137457
Bug: 5144140
Bug: 5143350
Bug: 5080599
Change-Id: I038c112bbf9e956e9a2b784178c0360d03e3f333
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
f5be9baf49891a2c81b2ca9bef80d86f7e20d8cd 05-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing default thumbnail in photo manager

Bug: 5126085
Change-Id: Ie90814fc353a70524049aa892e228d72c9dafb01
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
a02b6a23b649f1c25b20f8143b1b4a985e6269e9 02-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show group photos asynchronously

Bug: 4689452
Change-Id: If559d698f673849e7f65ad7b7eccdcec94a998d7
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
cab054c6d3336ef54dd60ed208df490fae6566db 29-Jul-2011 Katherine Kuan <katherinekuan@google.com> Auto select first group in group list on tablet

- If no groups are selected yet

Bug: 5061848
Change-Id: I52f464791dd0f96dbb00108cdd34895989bbd3d4
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.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/group/GroupBrowseListAdapter.java
1866a071adb9a64112524b2f4836766f7e655123 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Use group count per account column for group list

- Show the # of groups that fall into a specific account name and account type
- Make sure group count does not get cut off on phone portrait
by ellipsizing the account name if necessary

Bug: 5039532
Change-Id: I0420ad426cdd189313d710931339fb06ec766607
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
ea1c3a50874de0e1c34df7a3bd650fb64538f04d 24-Jul-2011 Katherine Kuan <katherinekuan@google.com> Use group summary URI

- This is part 1 of showing more details in the group list.
This CL just uses an existing group URI and sets up the
UI to read from a cursor as the user scrolls the list
(instead of reading the entire list and storing it in memory)
- Include count of # members in a group as a subtitle for
each group
- Include the header as an optionally visible part of the
list item because we don't know how many groups are in an account.
Only show the header if it's the first group in an account.
- Refactor some of the code to make it simpler

Bug: 5039532
Change-Id: Ie01fd005416992c4a1b4d89a1591942dc601c894
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
53fa6ef138f831a5a510d759a752d5101a256dce 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Remove account name and icon in group list item

- Redundant info that is already in the list header
- TODO: Still a bunch of work left on how to display
group members and photos

Bug: 5039532
Change-Id: I615144499052028b0f479bc02594b579ba689d32
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
56b428b2f8921142cebd2a0822e4aa4aa122c9c9 18-Jul-2011 Katherine Kuan <katherinekuan@google.com> Group header for group list

- This will probably all go away once we have a new
URI to load the group list
- Make hash map of account name to groups be
Account object mapped to groups
- Header should display account type, account name,
and # of groups

Change-Id: I079b02a214cfeeec5c89583647219b2192c62d40
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
c6b8afe730255537978f2c938cca6986cae63c34 23-Jun-2011 Katherine Kuan <katherinekuan@google.com> Group editor on tablet

- Allow autocomplete to add new members which presents
the user with suggestions from the raw_contacts table
with the same account name and type as the group
- Hook up the "new" and "edit" group buttons on the tablet
- Once the user exits the editor, update the group list
and scroll the group list to the group that was just edited
- Allow rename of groups (make the names of read-only groups
not editable)
- Allow removal of members
- Hook up the done / cancel / up / back buttons

- TODO: Be able to create a new group + add new members
in the same transaction. Then the new group editor
will allow adding members at the same time. Currently
you can only add a name to a new group. Once it's created,
then you can go and edit the membership.

- TODO: Bulk add/remove members in one transaction when the
user exits the editor. Currently it's saving the change
after you modify the membership list (even before you hit
the "Done" button in the editor).

- TODO: Add member status message and chat presence

- TODO: Add UI for non-editable groups

Change-Id: I1f32a28862c358b8bd1469666743cd240d28f80b
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
8268bbe65440c70db46b4c505433fac1fdc36e58 11-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add group menu options in group details fragment

- Move "new contact" and "new group" menu items into
list fragment (instead of details fragment or
people activity), so it works according to the current
tab esp for the phone
- Move group menu items into group detail fragment
- Remove custom "new contact" button
- Add some fixes for menu items / fragments going into and
out of search mode

Change-Id: I1f2a4d7e90b4e5d438bb271f0a66e21d8069b189
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
0ff0e317cbf788adc4dce38257d27691e032d6ca 09-Jun-2011 Katherine Kuan <katherinekuan@google.com> Group list headers and selection

- Sort groups according to account
- Add headers to groups in same account with # of groups in that account
- Add "selection" background on list item in tablet, but disable it on
the phone
- Misc: enable fast scroll, move icon to right

Change-Id: I1c83aa686de2431b3483a1591ecad7e9e6893cdc
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
be18de05d6f6a107c552e369bce58f51c946fde7 07-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add group detail fragment on tablet

- Add action bar on GroupDetailActivity, title, and subtitle
- Make everything use the groupUri instead of passing around
account name, type, group Id, and group title
- Fix some of the callback listeners between the group fragments
and group activities
- Add factory methods to ContactListFilter

Change-Id: I63066ea6eefde1e57562b6396d6dc590ed023c84
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
fd8cdedb816cb1fc5894e2e3c5e144ff16b90b7c 11-May-2011 Katherine Kuan <katherinekuan@google.com> Group detail page and list of members

- Click on group in group list goes to a detail page
- Temporarily show members, TODO: Move list as
an expanded list in group browser activity
- TODO: Populate detail page with group info and
group actions

Bug: 4413116
Change-Id: I114d276f96aed318307d185910ae8799228262c9
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java
9add0e5ef2a267acbe104e04f4cf6ab24cb8ba3e 11-May-2011 Katherine Kuan <katherinekuan@google.com> Add groups tab and show list of groups

- New groups activity, fragment, and adapter classes,
as well as and associated XML layouts
- For phone only, tablet UI is unaffected

Bug: 4409350
Change-Id: Ibeb592142e5ddc1efa5701472bbc72bde11d9760
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListAdapter.java