History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8e31cca93589aa86161f0f73a2a2f84b456b8be7 11-Oct-2013 Martin Hibdon <mhibdon@google.com> Disable refreshing from the UI for Drafts folders

b/11158759
Also disable for virtual folders, since it's meaningless.

Change-Id: Ifbe9fd21bbdbaa88303cfc03aa404fadf52d0272
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
53b34250c0029ac3dae4c72822f79d9fad85caa4 26-Sep-2013 Tony Mantler <nicoya@google.com> Don't show label-specific actions for non-gmail accounts

b/10903244

Change-Id: Iec6b900431ca6aa4c1a022c06c49920bc46067f4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
b3281fbfe64d84fdd9ec864d90c8551e943e55e7 20-Aug-2013 Tony Mantler <nicoya@google.com> Hide menu items as appropriate when drawer is open

b/10410900

Change-Id: If817812775d5579cb10ba545e2b89654ac25bf36
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
0fa9efd6df21a92866908ab679a78b7a128bc28f 07-Aug-2013 Andrew Sapperstein <asapperstein@google.com> Remove ad code.

Change-Id: I10fb58fd7d4c7e3a51dbf515b0d2df801502648e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
6c570db71b8adc43d7dc2f31e6fa63cf50c1426e 07-Aug-2013 Andrew Sapperstein <asapperstein@google.com> Add new ViewMode.

Works in OnePaneController.
Need to wire up the buttons.

Change-Id: Ia9aa5e696cbba1d170038e47d4941cc6fcf0a967
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
e29b97e508ad0bfc94a43000c79a9fd3abdfe1fa 02-Aug-2013 Tony Mantler <nicoya@google.com> Fix menu mislookup by changing to switch statement

b/10006552 b/10132551

Change-Id: I6dba3c132cc2ebc3cb3eff049884ae602060f7c0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
2b9d80eb16156173f11a02eae4f770d8c975927c 31-Jul-2013 Scott Kennedy <skennedy@google.com> Change all resid switches to if-elseif-else

I really want to get this building in an IDE.

As per http://tools.android.com/tips/non-constant-fields, library
projects (like UnifiedEmail will be) have non-final R constants. They
are not final until packaged into the main application project's
(Gmail/Email)'s R.java.

As such, they cannot be used in switch case statements, and we must
use if-elseif-elseif-elseif-...-else instead.

"This is typically in UI code and the performance impact is
negligible."

Change-Id: Ie699c13e1becd51c59c1b2ea81bc902d4f2e28d9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
aded57845c51f128fc5dbd8e992697823775ce5a 16-Jul-2013 Scott Kennedy <skennedy@google.com> Remove references to the Folder List

Change-Id: I9f6b9d7f6c5100324703449da4761e67266ebed0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
259df5b9e11908c8ef7c91483924891dd96b3c27 11-Jul-2013 Scott Kennedy <skennedy@google.com> Add a new FolderUri

This will allow us to add query parameters such that Uris will still
appear to be equal, regardless of differences in the parameters.

Bug: 9780067
Change-Id: Iafe39763b3ee448cf02536df89caa736500dfdaf
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
3b965d78774a42358ce6bbdcc43b4c8df130a60e 25-Jun-2013 Scott Kennedy <skennedy@google.com> Clean up a bunch of warnings

Bug: 9565838
Change-Id: Ie3a380581e81c63aaa0764875c55bfdccd5f2b13
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
c499d714d6dd9e42b5192f0aa36315c24ef908a3 13-Jun-2013 Andy Huang <ath@google.com> reduce layouts/inflates during refresh

No longer necessary to invalidate the menu upon refresh stop/start
because the spinner menu item has been replaced by the blue refresh bar
(originally introduced in CL I5b5829).

Also removed menu invalidation upon setFolder(), originally needed to
refresh the actionbar unread count (now moved into title, which still
works).

These were causing some unneeded inflates to happen upon swipe-refresh.

Change-Id: I60eed7d8fc3871830d22c4b81356f073cc2487fc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
dd2ec688cf18e0ec132d936168ccaa3c43cdefb1 04-Jun-2013 Scott Kennedy <skennedy@google.com> Move to Inbox

Show this option in places where "Move to" doesn't make sense, like
All Mail and search results.

Add a new Account setting field: Uri moveToInbox
This contains the Uri to use for the "move to inbox" action, which
may differ from defaultInbox.

Bug: 9256654
Change-Id: I91062d6a602ed785d42cc52ed66712f134730755
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
5747e152fa606c20261b18431f4a9f0ff3be7b5a 13-May-2013 Andrew Sapperstein <asapperstein@google.com> Show/hide menu items based on drawer open/close.

Fixes b/8905351. Currently, when the drawer is
fully opened, we hide the action items except
send feedback, settings, and help. We only
show the other action items when the drawer is
fully closed.

Change-Id: Ifdded1ccd20f012fb6b69089ee3914a399ea8235
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
055b24b708a1ca26cbfd8dc274f4ee3048a035de 11-May-2013 Vikram Aggarwal <viki@google.com> Remove unread count immediately when zero unread

Bug: 8909468 Unread count remains too long
Change-Id: I5397445159b94ff71ecce337760265306f0679df
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
25dec14269fe2be190a4bb0a6e3f6d2ef6c39b22 10-May-2013 Alice Yang <alice@google.com> Merge "Menu items to spec + cleanup" into jb-ub-mail-ur9
b905d08f25ca7255201c21aa8a504c9ffaf9c79e 08-May-2013 Scott Kennedy <skennedy@google.com> Menu items to spec + cleanup

NS: 2 in portrait CAB, 3 elsewhere
N4 (sw340dp): 3 everywhere

Bug: 8832952
Change-Id: Ie576a54331731cf07b8557e1e9c3a5d5619d8b0d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
9dcd483b16360662c7ce604b263c97930005a5ba 10-May-2013 Vikram Aggarwal <viki@google.com> Let the unread count remainin for its allotted time

In case we get an update to the current folder rapidly, and the unread
count has not changed, we want to persist the unread count.

Bug: 8894120 Unread count disappears prematurely under certain
circumstances

Change-Id: Ic79f1c3cba9b63225bbac6bdc466dc422648c4dd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
4bfad143f98613256d2edd2aa3239c645ad50830 08-May-2013 Vikram Aggarwal <viki@google.com> Hide compose in search results

Bug: 8747635 Compose button should not show when the user is trying to
do a search (on phone)

Change-Id: Ibdcec1928bbe36b0974b9b1316bc2ffe4c9c8146
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
d4796d78b3d6994d77edaf91b176fc3c79bb7362 04-May-2013 Scott Kennedy <skennedy@google.com> Always promote Delete when Archive is unsupported

Bug: 8743587
Change-Id: I5e37aeafc06afb222acbade9f598ca0c61e31efc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
ef91f8bc06c24014224d6129231ed0583dc719e8 04-May-2013 Scott Kennedy <skennedy@google.com> Don't show "Change folders" for unsupported accounts

Bug: 8808491
Change-Id: Id8b37f2ca37bc63810aa0834164f16f9b2f69f79
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
c67f53c2e3179271c03df47b1ab6b8e5f2fba0c4 03-May-2013 Andrew Sapperstein <asapperstein@google.com> Merge "Update settings per latest UX spec." into jb-ub-mail-ur9
43a1cc1adc835f9a5df30ca2558a2aee35019706 03-May-2013 Andrew Sapperstein <asapperstein@google.com> Update settings per latest UX spec.

Fixes b/8773002. Turns Remove Action into Archive & delete
actions with three options. Setting that option changes
the title of the text in the swipe to setting below it.

This CL adds strings, changes around the preferences to support
the new tri-state setting, and updates the action bar based on
the setting (to show archive, delete, or archive & delete and
push move to into the overflow). An accompanying CL does the
rest of the work.

Change-Id: I17d8ada9bc9f16b5e7b5a8abd8c55e8708773991
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
c590ba80552a893b848bd2b4675c2f4afd4dc26e 02-May-2013 Vikram Aggarwal <viki@google.com> Always update the subtitle

Fix the codepath where we wouldn't update the subtitle. Always update
the subtitle.

Bug: 8787958 In Gmail, sometimes no account name is shown (two
accounts configured)

Change-Id: I5ccd315ecad2c81d09e0903b2203861325ded204
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
84d168042a95cafe6da6874a81603e3bd83368ae 01-May-2013 Andrew Sapperstein <asapperstein@google.com> Merge "Add a confirmation dialog to empty trash/spam." into jb-ub-mail-ur9
ed5b52da9d2dd676c72a7137f6b85d9841fe6eec 30-Apr-2013 Andrew Sapperstein <asapperstein@google.com> Add a confirmation dialog to empty trash/spam.

Fixes b/8753294. Creates a new EmptyFolderDialogFragment
that displays the dialog, handles orientation changes, and
calls back to AbstractActivityController when delete is selected
to perform the mass deletion. Additionally, we now only show
the empty overflow options if there are conversations in the
folder.

Change-Id: Ibc9ff0b9511a4cdc4c390cd7273706abedb8d9a2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
12b3ee458e04ac7e0b69302e671d10b24a5c98cf 25-Apr-2013 Andy Huang <ath@google.com> use the drawer on small tablets. general tablet layout love.

Added 'spacious' variant of NORMAL list item layout.
Because the determination of whether to use tight or spacious dimensions
isn't easy with resource qualifiers (think of 7" tablet, which uses
tight dimensions for 2-pane side-by-side layout, but spacious dimensions
in portrait), I just made a whole new layout for this permutation.
Please remember to maintain NORMAL, WIDE, and now NORMAL/spacious
variants!

Use WIDE mode + drawer on landscape 7" tablet.

Make 2-pane controller and layout drawer-aware. Pull up drawer code into
the common controller base class. 10" 2-pane continues to not use a
drawer.

Don't use a resource qualifier to decide between normal and wide item
layouts (same reason as spacious dimensions above). Use the actual item
width as a dimensional test (list_min_width_is_wide).

Use default drawer scrim color.

TODO:
the conversation-open animation is janky looking.
can't open the drawer in conv mode/7" landscape

Bug: 8578806
Change-Id: I1210b1d47d1756353f7c386873465751ca21f801
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
e136824c34cbbfc2f1b845acba8d751f5ada0e40 26-Apr-2013 Scott Kennedy <skennedy@google.com> am ccd3ce23: If a user prefers archive, we sometimes need to show Delete

* commit 'ccd3ce237ad423924a90890c6e0477487f9e01a0':
If a user prefers archive, we sometimes need to show Delete
ccd3ce237ad423924a90890c6e0477487f9e01a0 26-Apr-2013 Scott Kennedy <skennedy@google.com> If a user prefers archive, we sometimes need to show Delete

Like in All Mail, etc.

Bug: 8728340
Change-Id: If7342f84a2a0069fb97f4eb3541b433cad7611fa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
b642b3164f0c6fc641beae6a7c021e39fcb9a382 25-Apr-2013 Vikram Aggarwal <viki@google.com> Set the title only after showing the title

Turns out the actionbar has a bug in MR1.1 (and below?). If the title
is set when DISPLAY_SHOW_TITLE is disabled, the title visibility
change is dropped to the floor.

A simple workaround in our case is to enable DISPLAY_SHOW_TITLE
*before* we set the title.

Bug: 8677802 Tablet action bar title missing after opening a
conversation

Change-Id: I87beacb8019a23f2e06fd998805e8b95ed3ae7f3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
8c887ef97607ad5c2c94d1d3b902afe6d5ef95a0 24-Apr-2013 Paul Westbrook <pwestbro@google.com> Support pressing title to toggle drawer

Bug: 8521542
Change-Id: I920a54f5ea69a8f839c0134a6fc274b0645e157c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
a9f24334aea1822422d1bf52d780fab547749755 24-Apr-2013 Scott Kennedy <skennedy@google.com> resolved conflicts for merge of 26f2b30a to jb-ub-mail-ur9

Change-Id: I01f3477133026e6ec54d41216ef50eacba155060
26f2b30a88a35bc0ae6992c3f4297ebf20bbca53 23-Apr-2013 Scott Kennedy <skennedy@google.com> Settings changes

Bug: 8685202
Change-Id: Ieaea840c61b7aca22ae664a66dbc0a28643e7139
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
b335fb3d8c6155c6872e7a5dfd540e23bb58a424 23-Apr-2013 Vikram Aggarwal <viki@google.com> Always show account name in the actionbar

Avoids a vertically unbalanced action bar.

Bug: 8688938 Always show account name in the Actionbar
Change-Id: Iafc6e044281eba3071f53e0e33b3cd06eb144042
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
9102495933a7b728c0a9bf7764405be94eeee7eb 22-Apr-2013 Paul Westbrook <pwestbro@google.com> Don't flash app name

Bug: 8674377
Change-Id: Ia7b64bbfedb7bef2a2871073aa2903ac1394696a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
7ee089ea2ef96e31504e88637b5f3b0969b3c7c1 25-Mar-2013 Scott Kennedy <skennedy@google.com> Add Empty trash/spam option

Bug: 4559378
Change-Id: I8dc5715a5f14f9fd6e8962ab665c4c25f3c64302
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
f18b1173c9624d1e0a8fa37ed15a63e9fe4ccdc8 17-Apr-2013 Vikram Aggarwal <viki@google.com> Show nonzero unread, suppress when meaningless, stop flicker

0. Don't show unread count when unread count is zero.

1. Don't show unread count for folders where it is meaningless.

2. Don't update the unread count when an account changes. At some
point in the future, a folder will change too (we will load an
Inbox). At that future time we already update the unread count.

3. When switching account from a user folder, the inbox is not
highlighted because the selected type is not set to system. Fix
that.

999+: How many MR2 bugs can you fix in a single CL?

Bug: 8638240 Do not show 0 unread messages in action bar

Bug: 8639372 Unread count: Don't show anything for specific folder:
Outbox, ...

Bug: 8634247 Unread count flashes in ActionBar for other account

Bug: 8600557 Inbox not highlighted after switching accounts

Change-Id: I0831c2ad42659eb6f7209ee75d293d16951540e4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
75d1bb1c9d4bcb6a3d6154ee481c64855ef39f94 13-Apr-2013 Vikram Aggarwal <viki@google.com> Show unread count momentarily in subtitle

Using new UX: Changing the account name to the unread count.

1. Show the unread count when the folder/account changes.
2. Unread count persists for 5 seconds.
3. On updates, it is shown again. (Unless the user had 999+
unread messages, and the new count is also 999+)

Bug: 8556913 I have 999+ problem emails, and I just don't care
Change-Id: Iba8bcf2f5e51ae15fd9144bf790ccc419a533c8f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
a85831df1721dda712be5154fb57404d8df1758a 13-Apr-2013 Scott Kennedy <skennedy@google.com> Allow configuring ActionBar items

Bug: 8606333
Change-Id: I98182899dd8117757b77e5a66e106f85c64356e1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
fd7eaba36ff40d43bf3813df91c89823ac7567cd 11-Apr-2013 Vikram Aggarwal <viki@google.com> In empty mode, disable the title/subtitle in the action bar

Previously, we were setting title/subtitle to null. This is
insufficient, as live folders will update the folder, which will cause
the actionbar to update. Instead of nulling out the title/subtitle,
stop displaying them using the correct ActionBar API.

Bug: 8571548 Subject line flickers when reading message from search
results on tablet

Change-Id: Ibc3b7e17f12725c7f90b60c8afece72186fbf847
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
e875b66908c81567f940a9b989d6f23f6de78099 11-Apr-2013 Vikram Aggarwal <viki@google.com> Don't close the search action mode so aggressively

1. The current search mode is killed very aggressively. This is closed
when we get updates to the current folder, and when we enter search
conversation list mode. This is over aggressive.

2. Incorrect and misleading comments in SearchActionBarView are fixed.

Bug: 8576496 Search broken in Landscape mode on tablets
Change-Id: Ic9a5a042270c055ba357c824449f7c49c81ede71
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
28f3d5c247927890a45880345b4bf6788f29a820 09-Apr-2013 Scott Kennedy <skennedy@google.com> DO NOT MERGE Enable "Move to" menu item

Bug: 8570161
Change-Id: I19c2368cac6fbe444757c17ad016934f511185b6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
ad8b99b26bf9eff7730ab733cc8ef8b0710a9e0e 08-Apr-2013 Vikram Aggarwal <viki@google.com> Remove the subject from the actionbar

Following the new UX guidelines: no subject in actionbar anymore.

Bug: 8438223 Subject of the mail disappears from the action bar on
orientation change to landscape mode

Bug: 8492928 Action bar title switches between subject and the
folder+account name

Bug: 8529168 Remove search_actionbar_view

Change-Id: I8551fdacd7843ca0b2ba0bf1025483eee2587638
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
c18c3380c131183875cfa97f72cd7ce101ef3c8b 06-Apr-2013 Vikram Aggarwal <viki@google.com> Update the ActionBar on folder changes

setFolderAndAccount reads mFolder. Silly me.

Bug: 8531716 Folders count is not refreshing after perform some
actions on mails

Change-Id: I3875278bf9b0365de9366d67e5266ba626d2e0c8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
a51ef9f052b3f5a1ed9dbf0cb116628a9213cb0a 02-Apr-2013 Vikram Aggarwal <viki@google.com> Move update off the UI thread

UiProvider.call() has the nasty side effect of creating a MailEngine,
which ahs a nasty side effect of opening an SQLite database. All this
needs to be done off the UI thread.

Bug: 8488715 Strict mode violations in MailActionBarView

Change-Id: I20cca6ea28e36c25ad0935809e1eea9550d88a5b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
81064f89b39df5b6a5055fe71d07d16972d3c66e 02-Apr-2013 Vikram Aggarwal <viki@google.com> Search actionbar view lacks the unread count

Verify non-null mUnreadView before proceeding. A longer-term fix is
to remove the search_actionbar_view entirely and never enter
setFoldersAndAccount().

Change-Id: I8ac19eb2b10a9824e0466ca88fd1b9f0570c82b2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
0a860c1ad1c79f953a37bb5c762737b46e7af99d 02-Apr-2013 Alice Yang <alice@google.com> Merge "Fix NPE in MailActionBarView" into jb-ub-mail-ur9
760d956596a3698d533ad95d3e4b1a57cf2910b2 02-Apr-2013 Alice Yang <alice@google.com> Fix NPE in MailActionBarView

Bug 8527363

Change-Id: Idf9b46197d329a39d3846249fd1e96abf7d89542
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
5fce99247640a1d46f0e703296fbef747d2db397 02-Apr-2013 Vikram Aggarwal <viki@google.com> Avoid NPE in more cases.

Change-Id: I181a8beceb8084ecd50de2c3b4c0c4ae80332a28
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
26b0bfd6dbff67a00079e7a60c9f7120d3a1ed85 29-Mar-2013 Vikram Aggarwal <viki@google.com> Unread counts in the new actionbar

Didn't have unread counts earlier, have them now, styled in the same
way. Tablet layout needs work still.

Bug: 8449503 Unread counts in ActionBar
Change-Id: Ic8224a935de7addd4d584252bb7992ca04b3e0de
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
d7d17b65dfdd2f8ed6a7f60e44ec9bda8e0debc0 27-Mar-2013 Alice Yang <alice@google.com> Hide "move to" menu item

Temporarily disable the "move to" menu item until it works with section inbox.

Bug 8480663

Change-Id: I2eba798dfa9d2e3f8a743aa149e5c2a487ed348d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
19b0e3c9d5e1afdf8dc09e5694ad9a1c8d722ced 22-Mar-2013 Vikram Aggarwal <viki@google.com> UI Refresh in the actionbar

1. Add an additional action in CAB mode and Conversation mode:
Archive, Delete, Mark Unread

2. Remove the subject from the actionbar.

3. In CAB mode, change the wording from "X selected" to "X"

Bug: 8411015 Move one of Archive/Delete actions into overflow menu
Bug: 8433490 split ActionBar isn't shown when viewing messages

Change-Id: Ie138c42dd6303b9a0ba46fa5a788e3dc4ba6f8e0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
2b288b35b1823eab3817cac455d6f784e65b5623 20-Mar-2013 Rohan Shah <shahrk@google.com> Fix folder & account name not showing on back

ConversationPagerController was clearing the action
bar's title/subtitle instead of immediately updating
it after the user went back.

Bug: 8428307
Change-Id: I6e6df13d37f7634328b01fd025222aac04e4c3a6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
f642b8128392890d84845ba8793192da0f9125ae 16-Mar-2013 Vikram Aggarwal <viki@google.com> Don't flicker the actionbar folder/account

1. Only change the actionbar if the current setting calls for it.
2. Change it when returning back to conversation list mode.

Bug: 8400784 Action bar title problems: "Inbox" appears when in
conversation view, and title is blank in conversation list mode

Change-Id: I1f2a4654eda8fcd7522eda24aa8124dae63ad060
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
6b641bab2b76995a717b183ac539267a6facdbf6 16-Mar-2013 Vikram Aggarwal <viki@google.com> Multiple accounts -> Show account name

Change-Id: I3ced41b403a6f216c316a9476cbb444e886a71ee
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
bc462cadc2dcd11d27e7810e437aeef1505f4cb2 15-Mar-2013 Vikram Aggarwal <viki@google.com> Single Actionbar: no more split

1. Use title/subtitle to show account and folder name.
2. Move "Show All Folders" in the overflow menu.
3. Remove the spinner and associated layouts
4. Remove existing spinner from the layouts.
5. Rely on actionbar's default view as much as possible.

TODO:
1. Unread count.

Bug: 8351542 Single action bar and new account selector

Change-Id: Ia29c17d751ff0cb789838d32b1fb518efd789b52
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
50ff0e50f1a27144e55e4184f48e433439727e7b 14-Mar-2013 Vikram Aggarwal <viki@google.com> Create FolderObserver similar to AccountObserver

Reduce code duplication. The FolderObserver calls the onChanged with
the new folder, removing the need for every observer to call
controller methods to get the current folder.

Change-Id: Ia36b4f59676d9b30d39cf2c0cabd2ab1d260f450
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
40698e6785e64ffa5c103a70079958e53f9af130 14-Mar-2013 Alice Yang <alice@google.com> Fix NPE in MailActionBarView

Bug: 8374546
Change-Id: If2fb0436132b1fe24c989be9242733bf9102011b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
b3442f582363e08ee38d92fec2a38588f73a691c 13-Mar-2013 Rohan Shah <shahrk@google.com> (Experimental) Make Drawer list sectioned and show recents

Drawer previously was a flattened view and mail spinner
was the only dialog with recent labels. This change has
disabled recent labels in the spinner and changed the
drawer folder list to show sections (system/recent/all).

Note, functionality has not been removed in order to
consider Email functionality - I've only disabled the
spinner as is and changed the drawer to a sectioned one
(SECTIONS_AND_RECENT_FOLDERS_ENABLED in FolderListFrag).

Bug: 8373282
Change-Id: If53712478402abeb37715844c05305a90bf60cc5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
dac89fa9237268d14448946700290fbb7de26004 06-Mar-2013 Vikram Aggarwal <viki@google.com> Make the account spinner focusable

1. Allow focus to the account spinner.
2. Pass no unused arguments to the constructor.
3. Remove non-field variables from the class.
4. Remove unused methods.
5. Add documentation.

Bug: 5346432 Account/recent labels dropdown is not focusable
Change-Id: Ibb6637283a22432bcfcc27340388269c5850829f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
7d10e0b0a86760575bf4dad465023b76ed0d595e 05-Mar-2013 Andy Huang <ath@google.com> am 313ac130: fix search hard key handling

* commit '313ac13095a386be366bd25f8106fbb34b4a7098':
fix search hard key handling
313ac13095a386be366bd25f8106fbb34b4a7098 05-Mar-2013 Andy Huang <ath@google.com> fix search hard key handling

onSearchRequested(String) -> executeSearch(String)
No sense getting this confused with the very-different
Activity.onSearchRequested().

Bug: 8309831
Change-Id: I20dfaa854d6dfb1b8a774337ae2ae1b0db17abce
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
9f15bf7923cf0dbe631d855047a8d720612a5c37 14-Feb-2013 Vikram Aggarwal <viki@google.com> am 49499e6a: Close the search action mode when the view mode changes.

# Via Vikram Aggarwal
* commit '49499e6afa67271390088bd1cf717d02cec34a3c':
Close the search action mode when the view mode changes.
49499e6afa67271390088bd1cf717d02cec34a3c 09-Feb-2013 Vikram Aggarwal <viki@google.com> Close the search action mode when the view mode changes.

If the user mistakenly activates the search query box, clear it when:

1. Current folders is changed.
2. A conversations is viewed.
3. A label list is shown.

Bug: 7456183 search UI has many unprovoked animations occurring with
no user interaction

and not break search while doing so:

Bug: 8200176 Search results are not showing in Gmail
Change-Id: I1890f084836f93bf05c73634c212a6e3af789793
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
4c9f4f012d3ca13c7bbee55da87dcd29cbc93963 14-Feb-2013 Paul Westbrook <pwestbro@google.com> am f3359e53: Revert "Close the search action mode when the view mode changes."

# Via Paul Westbrook
* commit 'f3359e538399b0820da48a4107281db99f1d6ba7':
Revert "Close the search action mode when the view mode changes."
f3359e538399b0820da48a4107281db99f1d6ba7 14-Feb-2013 Paul Westbrook <pwestbro@google.com> Revert "Close the search action mode when the view mode changes."

This reverts commit 896d73f5a24f62bc8958d61510a4c189a46236ec.

Bug: 8200176
Change-Id: I6b0fab17df75510db6f5cd82aca31d2d70bdb779
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
4740dbb30909ffa1f0bf6a869bef1272e1bbbebb 14-Feb-2013 Alice Yang <alice@google.com> am bf6c043f: Merge "Fix for multi-line action bar." into jb-ub-mail-ur8

# Via Alice Yang (1) and Android (Google) Code Review (1)
* commit 'bf6c043f68961c8a4045c2be188ffc74623d9cb4':
Fix for multi-line action bar.
15dfaa6bbf15ca4e57b201ee9a0476a4e6c490a7 14-Feb-2013 Alice Yang <alice@google.com> Fix for multi-line action bar.

Add back check for whether system supports multi-line actionbar instead
of always using the system action bar. Looks like this was removed
accidentally in Change-Id: I59d3c5b53cfb25d87824b93e59158b6ed2429e1c
Since multi-line action bars are only introduced in JB MR1.1,
we only want to use system action bar if system supports it.
On older devices, always use our custom action bar that can do multi-line
subjects.

Bug 8124889

Change-Id: I0e2180e23de979692e8907b070b7229280ddf3a6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
aab9bc71f2d8742128361dff72f77543f81dde52 07-Feb-2013 Rohan Shah <shahrk@google.com> Support "Move to" functionality alongside "Change labels"

Cherry-picking Rohan's original change since I messed something up
while fixing conflicts.

User cannot move an email from one defined label to another.
Change label is a hassle to use to only select one and a
menu item for moving is preferable.

This change introduces the "Move to" as part of the overflow
menu. It allows for users to move emails from folders, excluding
Starred/Important.

Bug: 8157593
Change-Id: Iaf8660fb01f731f5cbcb2253a3768b0d7b429132
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
49ae51166a34454460890a384db2be2d971309d0 11-Feb-2013 Vikram Aggarwal <viki@google.com> Merge "Needs to go in UR8." into jb-ub-mail-ur8
5c4db951d8f23d59866deaa49b31f8ff0c81d694 11-Feb-2013 Vikram Aggarwal <viki@google.com> Needs to go in UR8.

Revert "Support "Move to" functionality alongside "Change labels""

This reverts commit 0a4af34f6f4dce23a8c5b39e94fb91ff0f6260d1

Change-Id: I25d0311396033fb5759596e4a56792abb7f355fb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
fa427c96b651512cc3b314b5769f4f98d573428d 11-Feb-2013 Vikram Aggarwal <viki@google.com> Merge "Support "Move to" functionality alongside "Change labels"" into jb-ub-mail-ur8
896d73f5a24f62bc8958d61510a4c189a46236ec 09-Feb-2013 Vikram Aggarwal <viki@google.com> Close the search action mode when the view mode changes.

If the user mistakenly activates the search query box, clear it when:

1. Current folders is changed.
2. A conversations is viewed.
3. A label list is shown.

Bug: 7456183 search UI has many unprovoked animations occurring with
no user interaction

Change-Id: I65b2906d9f628ca5cee714efe20a6048e9bb2f38
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
0a4af34f6f4dce23a8c5b39e94fb91ff0f6260d1 07-Feb-2013 Rohan Shah <shahrk@google.com> Support "Move to" functionality alongside "Change labels"

User cannot move an email from one defined label to another.
Change label is a hassle to use to only select one and a
menu item for moving is preferable.

This change introduces the "Move to" as part of the overflow
menu. It allows for users to move emails from folders, excluding
Starred/Important.

Bug: 8157593

Change-Id: Ib5ae9f04b52f3f5d0f2d2ddb590219f7733cf171
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
48706dbdf65d8612071a2db66cc874cc3feaed97 02-Feb-2013 Alice Yang <alice@google.com> Cherrypick from UB1.1:
Restore text font size and color in action bar back to dark grey and 16dp.

Bug: 8116938
Change-Id: Idee3d45069e0532f06b6401ba2a086f8d3e26a11
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
a79acac5e3f387f1dd0de3007d35503335e6d5e9 31-Jan-2013 Paul Westbrook <pwestbro@google.com> Fix showing subject in search mode

Bug: 8114379
Change-Id: I5f19f2fcd038807caca05f70debd0b57da0cf45b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
9da91d3c0913100dbc6cde0cc02406815c133026 31-Jan-2013 Andy Huang <ath@google.com> enable 'up' tap highlighting sooner

Rather than wait for a conversation fragment to ask for a
subject remainder (which is possibly after a slow network load),
switch to TITLE mode upon first layout after entering "snippet"
mode.

Bug: 8106993
Cherrypicked from Change-Id: Ib1abd69942335c49c75eb595e4851ba09bd76c19

Change-Id: I59d3c5b53cfb25d87824b93e59158b6ed2429e1c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
af65e73c4ad37fd98f6f21804f441edb2256f5da 29-Jan-2013 Andy Huang <ath@google.com> Improve 'up' tap highlighting

Leave our custom SnippetTextView as-is, but dynamically switch
from CUSTOM to TITLE mode when it is safe to do so. This fixes
the 'up' tap highlight while leaving our snippet measurement
logic intact and functional.

I've lined up the layout of SnippetTextView to be consistent
with the current framework TITLE mode, but there are no
guarantees these will stay consistent on future platforms.
Caveat emptor.

Use reflection on the new ActionBar 2-line flag as a way to
determine if 2-line TITLE mode is supported in the platform.

Bug: 8030707
Change-Id: If293c20a296b36265d6dbcf49095879093ddfbc7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
bcb16b98140a83a4db3c51568d21c839595f73df 29-Jan-2013 Vikram Aggarwal <viki@google.com> Check tablet mode through resources

Change-Id: I790fef6ef7ce3ca97ebba1fa220f44123c2d2e9d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
53a615db980802911c8570a04e437b03500323c4 20-Dec-2012 Scott Banachowski <sbanacho@google.com> Send message when changing accounts.

Let the Gmail UI provider know which is the currently selected account.

Change-Id: Id471ad44c4e24a1fb2da5890060ced17b18494bd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
76bb05bbeb4b04fe05908348b6cacd860fa659ca 05-Oct-2012 Vikram Aggarwal <viki@google.com> Disable spinner if no recents.

Bug: 7282059 Spinner appears in tablet conv view even if there is a
single account and no recents mail_ur8_candidate

Change-Id: I1775444b1ba05fc1dc9b796cacf8936e25f07423
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
41b9e8f7bea47bbcae71b9ae81c3608a00a90e70 25-Sep-2012 Vikram Aggarwal <viki@google.com> Fewer toasts when there are connection issues.

1. We don't show the toast on synced labels.
2. We don't show a toast when background syncs fail.

Still TODO:
1. Showing a toast when the user hits the refresh icon
2. Showing a toast when we enter the app for the first time & no connection exists.

Bug: 7202801 "No connection." error

Change-Id: I312a5670aeedfc2f8e3dda11e662f2905027993f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
636c1a1bf144e28a8a1ab022dfcfba83c7b1ca1b 23-Sep-2012 Vikram Aggarwal <viki@google.com> Preemptive NPE fix for null cursor.

If the cursor is null, AAC.accountsUpdated crashes abruptly. We aren't
observing this yet, this was discovered while investigating a related
issue.

Bug: 7100404 Order of accounts in email is broken
Change-Id: I2c9021142865eda69ceb9a3c97187086854af9e8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
f807ba7ac1011f7fd1e0d382dcc0518ba3529810 21-Sep-2012 Yorke Lee <yorkelee@google.com> Update ActionBar immediately when entering conversation

Update the ActionBar immediately when a conversation is selected
instead of when AbstractConversationViewFragment is loaded so that
the extra ActionBar icons are not displayed twice momentarily.

Fixes b/7161358 Duplicate "Archive" icon displayed temporarily when an email is loading in the Gmail Android app
Change-Id: I3990c52789d0e9796bec8985c937c1d6f80982e9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
cb267dae476577362f87d18ba0e205c416c42a07 21-Sep-2012 Vikram Aggarwal <viki@google.com> Enable the spinner in tablet in conversation mode.

Fix b/7195193 Recent labels not showing up on spinner for tablet with
only one account

Change-Id: I94eb56078eebc95507a4364031fd4d059c63d900
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
b37397cf16ee51ce8168b9c5372d8ffe645eb870 14-Sep-2012 Vikram Aggarwal <viki@google.com> No spinner for single account.

Fixes b/7168279 Account spinner caret shown even for single account

Change-Id: I165ea40b01d6fb108a3565e89ac73e75352cf335
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
046e08a7e6c82783743fca73e7837e5c863f7a01 06-Sep-2012 mindyp <mindyp@google.com> Make sure when the mailactionbar gets a folder update, it also updates the spinner.

that way, we get unread count changes.

Change-Id: I7d5a12387f2d526cda656dac74ba6a8421d1a5a6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
26760ef1fd70b0a6e386268d4cd738b6fd310700 05-Sep-2012 mindyp <mindyp@google.com> use framelayout instead of a spinner

avoid the spinner entirely

Sets max width via a dimension
doesnt use an attribute since we do so much funky stuff renaming pacakages
from unified to gmail that getting the namespace is an exercise...for
some other time
Change-Id: I5833587874af308b6156c58c9a20fe63dc5a5489
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
6fb1b62b9e8e480892cb1575c8219dfd4c4e1eee 05-Sep-2012 mindyp <mindyp@google.com> Use old spinner

The framework has too many issues with us using the spinner the way
we want to for navigation by default
Just patching in our old custom version for now
Change-Id: Ibf84b43ac03e5bdb30b65993ef9fd9f1bed33fa1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
f5a2442dc520d3241124c858c22e8de557b84460 04-Sep-2012 mindyp <mindyp@google.com> Calling in the other order is destroying what we do in onprepareoptionsmenu

This change:
https://googleplex-android-review.googlesource.com/#/c/221726/4
caused search mode action bar to be entirely messed up; no menu items,
no search view

Fixes b/7102613 Search results missing SearchView in action bar
In this way, our method AND the super method both get to handle onPrepare

Change-Id: Ib6b296d552578ec8811912dc056d93dd3d896fef
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
0fc8fa57bf5fe791706490a5259ddf2b75519bcc 04-Sep-2012 mindyp <mindyp@google.com> If the query is a prefix of what would complete with the suggestion, just use the suggestion

the logic for removing doubles only needs to be applied in the case
where there is EXTRA text before the start of the suggestion

Fixes b/6995886 Selecting search suggestion causes strange behavior

Change-Id: If2a2c3824ab5e7e02aa9fe80d955c31d6e3ad5fa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
58cad2eea744d41a11c0124e91308e38108d242e 29-Aug-2012 Vikram Aggarwal <viki@google.com> Folder list fragment by sections.

Known issue: the recent folder *and* the user folder is highlighted
when selecting a recent folder. A change is being prepared to fix
this.

Fix b/7074104

Change-Id: I82733bc6be105c6270d17f3c1a281fd4ec15a48a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
d736a385f1ce5e1a59a7953f9245526b37126809 29-Aug-2012 Andy Huang <ath@google.com> minimize state changes to avoid blank views

Disable 2-pane layout transitions for now. Some devices
sometimes don't terminate the transition, which prevents
layouts from happening.

Refactor actionbar's menu prep to avoid unnecessary changes to
actionbar view state. Frequent changes induced actionbar's
internal Spinner to sometimes do layout during a layout,
orphaning view subtrees and causing blank views.

Now that the known root causes are fixed, disable the original
workaround so new issues can surface and be fixed sooner.

Remove an unnecessary menu invalidate in AAC.

Remove unnecessary view containers in 2-pane layout.

Bug: 6946182
Change-Id: I8334a3846996ca06c0da56f1c1a33089a2fca3de
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
649b9ea3653da73fac0c33c8fb0af18baad12ac3 27-Aug-2012 Vikram Aggarwal <viki@google.com> Fragment save/restore machinery

1. Avoids creating ConversationListFragment and FolderListFragment
objects when restoring state.
2. Stores and restores the view mode correctly.
3. Moves core logic to the AbstractController where possible.
4. FolderListFragment scroll position and selected state is verified
working in One-Pane and Two-Pane.
5. Fewer mode changes, less creation and destruction of fragments.

Coming soon:
1. Restore scroll position in ConversationListFragment.
2. Fix some inconsitencies discovered and marked with TODO(viki).

Change-Id: I4d11a576587b8e85300202650381b6e4df3ce61e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
54f120f6ada40c7191811dfff99b151e9e192c78 28-Aug-2012 mindyp <mindyp@google.com> Commit leave behind items when tapping account switcher

There is no onclick listener for it
or onshow for the spinner popup window
this is my best guess as to how to tell when it got tapped
when the popup is shown, the dropdown views will be accessed/ built
Dismiss when cab mode is exited.

part of b/6864248 dismiss leave behind on next action taken

Change-Id: Ib706f61a47356412cef73822a4a40453214d22f2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
a2de96f0f3b1bc94b6751ccc02f1ca3b173d8450 22-Aug-2012 Paul Westbrook <pwestbro@google.com> Enable navigation in wait mode

Enable the user to switch accounts while waiting for one account to sync

Bug: 6375367
Change-Id: I937f9e3d45fe640882ccf4d67a8f16a9e905e565
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
1dd77c96938f9a96724f9c0112e6e2f1897faf49 21-Aug-2012 Vikram Aggarwal <viki@google.com> The FolderWatcher invalidates the action bar

Required to redraw the action bar when the unread count changes.
Part 1 of 2 to fix b/7017544

Change-Id: Ica32df4a8184506da9e9a481b377919aa79c5e7d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
1e180dd6980a82c702b7879e06937fdfe9cd6c2b 16-Aug-2012 Mindy Pereira <mindyp@google.com> Trim search queries before sending them off to be processed

Fixes b/6998370 We should trim seach queries before saving

Change-Id: I33c80ae57db7cc975f16b0f60afe5f762acf3191
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
7c401b7896910c00e6234e8774aab0be45740d32 14-Aug-2012 Vikram Aggarwal <viki@google.com> Get the Account through a listener

Every object that needs an account gets it from the ActivityController
by registering for future updates. This should reduce some of the
headaches with account objects going out of sync.

Fix b/6969950

Change-Id: I0449b482ecd84bdb947304db5f0504c77dd1dc7a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
ecb610c88e0a585e326df4ed76f27f32c66200bc 14-Aug-2012 Mindy Pereira <mindyp@google.com> Never disable compose

We arent disabling/ enabling the service anymore.

Change-Id: Id173d9d895f946b6fa33c9ebd4ecbe684469a246
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
90e17c1dae4b6af58670358687c132d457a7395f 13-Aug-2012 Paul Westbrook <pwestbro@google.com> Fixed ActionBar navigation problem

It looks when switching from NAVIGATION_MODE_LIST mode the
ActionBar code cleans up some of the internal state. Now make sure
to register the navigation list callbacks when transition to
list navigation mode

Bug: 6970301

Change-Id: I429feb255ca164994c0f3be6d0f0ed010d79e1a0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
4f393ecd51dbfe2ee3468105439db538ea0ccd7a 10-Aug-2012 Paul Westbrook <pwestbro@google.com> Remove old style toast

Bug: 6959479
Change-Id: I9ed44ded53b66c5625e2fcbc421b29b03a37ee65
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
641de6544634b55a5505cb2874059e02e13f70ae 03-Aug-2012 Mindy Pereira <mindyp@google.com> Cleanup extra calls to mailactionbar for refresh/stoprefresh/update.

Just use the folder observer.
ConversationListFragment already uses an observer, so we don't need
an extra onFolderUpdated call there either

Change-Id: Ibe003354a3d477e2fb924aa4d9700f5f26154b8e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
7a5d95a08464fb82b0310c82f3c39bfb8b63539f 28-Jul-2012 Vikram Aggarwal <viki@google.com> Unread counts in ActionBar accounts.

Fix b/6392082

Change-Id: I25b0c1ea0faf27519fca96fafc66644a2bb36be0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
5e63e8aae365dc210a0647b7e1c87f76bf652c80 19-Jul-2012 Vikram Aggarwal <viki@google.com> Store default inbox name in Settings.

Show the default inbox name in the Action bar.

Change-Id: I08d31084944677ec219fbb8936eeaa5d8c4532c9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
1a3f3fcb38756a3b5725d38b18145116ead9c117 18-Jul-2012 Vikram Aggarwal <viki@google.com> Show recent labels on phone.

Fix b/6824393

Change-Id: Id1f8440881a3989b5170a673af5ec529e48b3935
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
5e1403c825669e908e3211bb815ed537847f3069 18-Jul-2012 Mindy Pereira <mindyp@google.com> Don't do a find/ replace on partial queries unless we have > 1 query token

Fixes b/6840544 First few characters of searched mail id gets truncated

Change-Id: Iaff9299053d25fa4888e90d1f829248729baff32
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
071fa7e63bf596367b8a93261306b7014f325d0a 18-Jul-2012 Vikram Aggarwal <viki@google.com> Always set selected to the dead header. Use stable IDs

Fix b/6825717

Change-Id: Ib392238d142c18e4d91984167562600e14a42949
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
62c71794b1c6ec8732a6cff5e0156c22e27cb5d4 18-Jul-2012 Mindy Pereira <mindyp@google.com> Enable compose menu button only if the compose activity is enabled.

Fixes b/6829985 android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.email/com.android.mail.compose.ComposeActivity}; have you declared this activity in your AndroidManifest.xml?

Change-Id: Ia2d967c5b62da2236c9f04e0067c2c19bc920f8a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
0e7f463d8b8be6a0c1993dea717e843db8e12c72 12-Jul-2012 Mindy Pereira <mindyp@google.com> Use a single view for the accountswitchspinner.

Show and hide items as necesary.
That way, we can use the built in list view recycler.

Change-Id: Ibc7778330107607ba97eba984f15cd3ea73a04ba
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
592745e56dfbf7d8655347a8bec218404ba293e4 11-Jul-2012 Mindy Pereira <mindyp@google.com> If convertview exists, use it.

Helps with b/6801247 gmail ANRs very frequently on Manta

Change-Id: I57c968bb56e71ccedbcbb753866fe7564055ccf0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
40f26592da3065a72417f3fdfb7f9a005ec5d39f 28-Jun-2012 Mindy Pereira <mindyp@google.com> Show title in the folder list.

Change-Id: I09014c7a38f9b3a7307489459ce56c593eadcf27
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
b334c9035e9b7a38766bb66c29da2208525d1e11 25-Jun-2012 Paul Westbrook <pwestbro@google.com> Changes to support different Log tags

Change-Id: I7121fbf7132444fc0f5c0c130373e3f2d1a3cf7a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
1eb955e576536f4a7e61c82d8a3a3442c1686397 25-Jun-2012 Vikram Aggarwal <viki@google.com> Minor change. Correct logging

Change-Id: I450470f75acd6927fc45f00b07ed35c88dbd2472
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
0531c9fdeee6ed2beb0298e2c901b9c44d3bd44c 25-Jun-2012 Mindy Pereira <mindyp@google.com> Fix build

Change-Id: Ic685ff7ce2bfa91a4f1ea580a9c09302bda5356e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
ca97b31d2812bf64fc1d528170c33c986602d350 25-Jun-2012 Mindy Pereira <mindyp@google.com> Remove dupe strings when searching and choosing a suggestion

Fixes b/6652749 Search suggest appends instead of replaces.

Change-Id: Iee1cd077f472a8708522b61bcd4ec5d3c07780c1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
f8fcb800aa4562734c6a4f165d92d09e78a8c484 25-Jun-2012 Mindy Pereira <mindyp@google.com> Add search suggestions authority.

Has contact suggestions as well.

Change-Id: I395b9baaad019cf08151d75f586c175f6b6e99ab
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
73bffaf3f72db506de249d432fe1442af38c1e13 25-Jun-2012 Vikram Aggarwal <viki@google.com> Ignore the first navigation to position One, not zero

Fix b/6725270

(Needed because position 0 used to have a valid account, now it has a
dead spacer, which is not selectable due to
https://android-git.corp.google.com/g/#/c/201659/)

Change-Id: Ib1048101e7b692bc275acd6b50bcc0d5f682567b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
67f36fc85e569cef96f2932718d14f0489b06339 18-Jun-2012 Vikram Aggarwal <viki@google.com> Recent folders on tablet in conversation view only.

Fix b/5892452

There are two changes in this:

1. Allow suppression of recent folders, the header and the "Show all
labels" footer. 2. Introduce a dead header to satisfy
actionBar.setSelectedNavigationItem, so that we can receive taps on
every visible account and folder. It is an empty, invisible view
that is shown above all the accounts. The user cannot tap on it,
and the user cannot see it. I'm not proud of this hack. We should
request the framework team to add a setNavigationNone for such
use-cases.

Change-Id: I83ec4bbb9bbac02941bb5d43a123a65e0afcb7f9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
ac2548293e93c14b1d14e6de53328c561ba1cca6 18-Jun-2012 Mindy Pereira <mindyp@google.com> Small tweaks to make search on tablet work better.

This makes sure we clear the focus from the search entry field
when in search results mode.
Also, when in two pane display for search results, we want
to show search_results_conversation mode and not search_results_mode
Now, when the user rotates to or first enters search in landscape,
we don't get the annoying transition from FolderList|Result List
to Result List | Conversation; it goes directly to Result List|Conv
Change-Id: I980990aa34d6712b7ebe5212a515a3931473cba8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
edb135e3089eb7e4a844152da9f42b4a7de60f59 15-Jun-2012 Mindy Pereira <mindyp@google.com> Move search specific mode handlers to the search actionview.

this is the actionbarview that will be used whenever the user
is viewing search results.

Change-Id: Ie5d590b08a26050dd15a52388d6095271f369449
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
b466bcf49502a1178cf7362a81470f3231d8892b 15-Jun-2012 Mindy Pereira <mindyp@google.com> Fixup behaviors for action bar when in search mode.

Now that the subject is showing in conv mode, can confirm
this all works as expected.

Change-Id: I707f3f46a2a5bdfa49e61bc1eacb217c5a1ba86c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java
6681e54368343cd4d15a561e3edb206ec9e8059e 14-Jun-2012 Andy Huang <ath@google.com> small refactor

framework already has an ActionBarView class

Change-Id: I7845dd3ca9f5fda2099a19f157f5d10fb1bdeff3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActionBarView.java