History log of /packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd321f65f1e50409812976380ad1f0fdb3fa35cb 28-Oct-2013 Yorke Lee <yorkelee@google.com> Move ContactLoader related code to ContactsCommon

This CL simply moves classes from Contacts into ContactsCommon.

This is needed so that Dialer can use ContactLoader related code
for b/11294679. A ContactLoader will also be needed in the future
to allow InCallUI to download hi-res photos while in call.
Bug: 11294679

Change-Id: Ia033f3ea2406a907a4e71290c9ce810a5583dab8
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
f7bd441e39232a9953f707cf1e9c7253108b8865 12-Jul-2013 Chiao Cheng <chiaocheng@google.com> Fix monkey bug NullPointerException.

setVerticalScrollbarPosition is causing a null pointer when mListView has not
been created yet.

Bug: 9526257
Change-Id: I469253d9301ea38dc80dace34929986d07b40c75
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
e90783822d17ef7696d8ec09ebb3ddd6d1768986 18-Jun-2013 Chiao Cheng <chiaocheng@google.com> Fix scrollbar position for RTL.

Bug: 9338977
Change-Id: I65884152051ccb10a3362afd325b9ce77e400f20
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
a0233a048858f1593ea4924e9c5036f39aedbcdd 02-Nov-2012 Chiao Cheng <chiaocheng@google.com> Moving ContactListItemView and dependent classes.

Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary
dependencies into Contacts Common package.

Bug: 6993891
Change-Id: I3dfce84ad01932450dc09588c22903e7307d7da0
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.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/GroupBrowseListFragment.java
6f74c0f3313cbb08ee8a8fbb79bfefc5b03fe215 27-Sep-2011 Makoto Onuki <omakoto@google.com> Fix account list for group editing (for master)

- Don't use contact writable account list to populate the
account picker when creating new groups, instead check for
isGroupMembershipEditable() on the account type

- Repeat the same for determining whether the "new group"
button should appear in the PeopleActivity or not

Bug: 5360120
Change-Id: Ifd2fd1cf4ea7bf02d4dcba3e9c023bd7041fab83
Original-Id: Ia1ec62eff3fe4fd5b495548218c58f238ff49788
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
44b90b09a61c53cd61b6f8ff0889f85b7d3490bb 26-Aug-2011 Makoto Onuki <omakoto@google.com> Fix group list scroll position resetting issue

- Clear mSelectionToScreenRequested once requestSelectionToScreen() is called.
- Do requestSelectionToScreen() only when selection is visible (i.e. on tablet)
- Also removed unnecessary ListView.save/restoreState. There was no code between
these.

Bug 5221320

Change-Id: Ie3dd466b4f3f84562ffec4c72a8026f5833a0b5d
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
4715cafcbe76ac79b0b25ec62ec4ad8b55a2d41d 23-Aug-2011 Makoto Onuki <omakoto@google.com> Persist selected group on rotation

It was all about timing of restoration. We did have the code to restore it,
but it should have been done before mAdapter.setSelectedGroup().

Also switched from Bundle.putString() to putParcelable().
(putParcelable accepts null -- so the change should be safe.)

(This CL also restores the activated item on the group browse list, although
we don't set proper background to it.)

Bug 5137176

Change-Id: I735f80419c60bb3dd5e760c639900b4eba1ef6c5
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
a1bbf6139bb1e0d30078fe6c99effaf45f7416ef 16-Aug-2011 Isaac Katzenelson <isaack@android.com> Fix empty state layouts

Bug: 5074806 Fix empty state layouts
Bug: 5109507 During loading group, we show "no groups"
instead of "loading groups"

- Changed the layout of contacts_unavailable_fragment to Marco's specs.
- Added a secondary message for empty state.
- Aligned layouts of empty state of each specific fragment to match the
full empty state.
- Removed "No Groups" message when group list fragment is loading the
group list

Change-Id: I5cea254e5892955906127599374dc706d2aca91b
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.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/GroupBrowseListFragment.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/GroupBrowseListFragment.java
66606b648d7eee16b6e5a55506bbee141887b55e 23-Jul-2011 Isaac Katzenelson <isaack@android.com> Adding "empty" message in empty state

Added the message "No Contacts"/"No Favorites"/"No Groups" when
There are no accounts and no contacts on the device according to
the tab selected.
Added a message on the groups view when no accounts are on the
device and a button to add a new account

Bug 5071818: Empty state when no accounts added to device

Change-Id: If736899f4549554693f832f78a1f22798f2beae2
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.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/GroupBrowseListFragment.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/GroupBrowseListFragment.java
a89d84e80f02301cb4817bdd97568e77f33e85be 10-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Group list: Don't reset scroll position during sync"
5fcd54c6fadfe5de92455f116e2c4d6ab7054be9 08-Jul-2011 Makoto Onuki <omakoto@google.com> Group list: Don't reset scroll position during sync

Manually call ListView.onSave/RestoreInstanceState to restore the scroll
position after setting a new adapter.

Note this solution isn't perfect; ListView.onSaveInstanceState saves
the item ID of the fist item (as well as offset to the scroll, etc).
The scroll position will only be restored correctly if the ID is valid
(i.e. non negative) and unique.

In our case, if the first item is a header, the list view will get
confused and may scroll to the wrong position. But it shouldn't be that
big deal here...

Change-Id: I07e2682178d068253ccc96bc7a836de4bd25c7ef
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
267073407439d7df012a2e0df577e39a1f89c4a8 08-Jul-2011 Isaac Katzenelson <isaack@android.com> Remove deleted groups from GroupBrowserList

Change-Id: Iea7435c6b1f569dd8ac5416b35470b9ae2f48761
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
59dc2751d64f60f743b8a9e78186aa5b79dcaf83 07-Jul-2011 Isaac Katzenelson <isaack@android.com> Fix "Tab not maintained on rotation"

Change-Id: I331794c948dab876c808ba1274cb11dbdb70155d
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.java
f2bc9f78ab2fe6856f338f537445e210f1eb9300 02-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Group editor on tablet"
7aff29aa9c0b83116cdf8bdf493f0e6888033090 02-Jul-2011 Katherine Kuan <katherinekuan@google.com> Don't show "My Contacts" and "Starred in Android" groups in group list

- In group list, basically filter out the group if auto-add = 1
or favorites = 1

Bug: 4727799
Change-Id: I8909707058fc86cd525e8df705f2efe571171760
/packages/apps/Contacts/src/com/android/contacts/group/GroupBrowseListFragment.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/GroupBrowseListFragment.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/GroupBrowseListFragment.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/GroupBrowseListFragment.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/GroupBrowseListFragment.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/GroupBrowseListFragment.java