History log of /packages/apps/Email/src/com/android/email/activity/ActionBarController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4c13e1cf4ac82d53093c99ecedf83fee738e8af8 02-Feb-2013 Vikram Aggarwal <viki@google.com> Make subject in actionbar smaller.

Make the Alice's change to Email this time:
https://googleplex-android-review.googlesource.com/#/c/269629/1

Bug: 8124338 Email message text in action bar seems larger

Change-Id: I96a0b62d1226174d0dd47b99b1ab83e512f07bec
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
09a09623952011e72b28d0fd3e6b9845477a6a52 26-Jan-2013 Paul Westbrook <pwestbro@google.com> Use standard actionbar when possible

When displaying the message subject or the "Folders" screen,
use the standard action bar. This allows Email to use the platform's
policy for click handling

Bug: 8030707
Change-Id: I73bed259476d73ed2b833811b9f4121d02967b01
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
ed060515f11fd22b2f8e32eacab28a720ea552ca 18-Jan-2013 Andy Huang <ath@google.com> alias clicks on inert ActionBar modes to 'up' action

When the action bar spinner is inert, allow taps anywhere in
the custom action bar view to do the 'up' action.

Bug: 8030707
Change-Id: I977b59384319a2113675c418663a98e06e17d524
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
bc47398187c6ffd132435e51d8d61e6ec79a79db 25-Sep-2012 Paul Westbrook <pwestbro@google.com> Merge Email1 into MR1

Change-Id: I45289d46b65faffc7a3a3dd46382899162f3aaab
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
cc0185f07c9198008d8dc685ae9979f3e35e8539 28-Jun-2012 Marc Blank <mblank@google.com> Manual merge of Email from jb-ub-mail

Change-Id: I564ddf433d371f45ba78a10f73bb182d484c56f2
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
1720f8251379a23d7b81bf15a304bec6643adab0 10-Nov-2011 Mindy Pereira <mindyp@google.com> Make the dropdown width larger/ matching Gmail.

part of b/5520685 update account switch spinner to match Gmail layout

Change-Id: I727d318f3f10199399b61fc4455e44d302fb8e2f
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
0730c4fcd008a7b7835240b790c3b11847845018 10-Nov-2011 Mindy Pereira <mindyp@google.com> Make account spinner styles match gmail style.

Fixes b/5520685 update account switch spinner to match Gmail layout
Change-Id: I06c262f16d8629696bb761b005a3728406ccce53
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
f97ec4d1e8b9c19033db06c16e2854773f90753c 30-Aug-2011 Ben Komalo <benkomalo@google.com> Hide search icon in search mode.

This is a kludge - the real solution is to use the proper action modes
in the framework. That's too large to do this late.

Bug: 5232787
Change-Id: I76b68b250c384bdabf51e8831f833afd65c0c73b
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
899e481fd11053a8496d58ca45432c59c094af9a 18-Aug-2011 Ben Komalo <benkomalo@google.com> Fix up action bar items.

- vertically centers mailboxes
- fixes subject lines from extending beyond 2 lines and getting cut off

Bug: 5183775
Change-Id: I8f6367edeafdfcf361cafa7e542f4028e955f7f1
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
4b75ac992d349105b71864be156a46d19fc049bb 13-Aug-2011 Ben Komalo <benkomalo@google.com> Update visuals for new fonts.

- tighten up action bar spinner
- fix up message list senders/padding

Bug: 5159050
Change-Id: I00033d994a23f7fbb81cd72f53b9d66faa7570f9
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
ed494cd6bb071efd1bf290b98c977debc7d15022 09-Aug-2011 Ben Komalo <benkomalo@google.com> Fix search styling.

This eliminates the excessive padding on the left and makes the hint
text behave according to the new spec (since it uses the new action view
expanded mode).

A later CL will actually change the item to use the action view
facilities of the framework (so we don't have to manage our own custom
views).

Bug: 5109953
Change-Id: Ia3e4a1e64e65b3b8bb3e708b31636f4186acfd46
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
263d0ec707fa8eede6eeaaf54caed889d2663f2e 02-Aug-2011 Ben Komalo <benkomalo@google.com> Fix account spinner width.

- make it take up different size on phones and tablets (also landscape
phone/portrait phone)
- move unread count outside of the spinner area

Bug: 5108972
Bug: 5111250
Change-Id: I2c16bbb52ce53bbf1c8fe08fd78f1a4b4afd4ccf
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
3baefc2da0c5ef6d386ac6ff77f270215cd788d3 01-Aug-2011 Ben Komalo <benkomalo@google.com> Minor changes to actionbar for message view

- hides the unread count and account name
- makes the subject two lines

Bug: 5103483
Change-Id: Ied537a0c7d8142ecebe49638a814010790433299
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
80b817714f692ee22163dfcbc730bb09fdce8aed 22-Jul-2011 Ben Komalo <benkomalo@google.com> Optimizations to startup.

- don't inflate search views - inflate them on demand
- kill some unneeded containers

Bug: 4996847
Change-Id: I7747e194e7c0939ad6416f351096639b283f4899
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
4abf58237ac3b812df318f1d79ab41bcfb57c80a 02-Jul-2011 Ben Komalo <benkomalo@google.com> Fix some stale TODO's

- also bail search mode if we can't find an account. it probably doesn't
matter _that_ much since the UIController will also bail, but just in
case...

Change-Id: I0b601186362e048de83b53617e529bbada1e8db5
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
3aa7fd74f8233c5d9f3a03238908b903fd7c5f21 30-Jun-2011 Makoto Onuki <omakoto@google.com> Fix bug 4978032 Can't get out of "starred" mailbox

Even with CL the account spinner on the starred mailbox looks still a bit
weird because the spinner turns into the combined mode even if you select
the starred mailbox from a normail account's mailbox list, but at least
you'll be able to get out of the starred mailbox.

Change-Id: I26a256be39f070acece67f4a308a8525a6be1d3b
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
698aa92e6fe4d711466d8b242d6ff7dd5df1176c 30-Jun-2011 Ben Komalo <benkomalo@google.com> Fix actionbar for message view

- shows the title of the message in the action bar (visuals not final -
need to extend the width and hide the account name)
- ensures that tapping up/back from a message view from a search result
list doesn't exit search
- ensures that tapping "app up" from a collapsible tablet view doesn't
exist the search unless the left pane is uncollapsed

Change-Id: I2b21a430d12148cf72237060c05312c7a23e2b3b
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
659f60f73428eb7f7b393689d1a74bfddd9a0cc2 29-Jun-2011 Ben Komalo <benkomalo@google.com> Wire through logic for searched mailbox

- update hint based on the mailbox being searched
- ensure that we use the original searched mailbox as the mailbox to
search for subsequent search (i.e. a search while we're viewing search
results) and not the search mailbox

Change-Id: Ic8663272173ce386dcd13fdf0369e918fb895be8
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
ecd9c93cfaad7c64201777fa5d62e3a5b6665720 28-Jun-2011 Makoto Onuki <omakoto@google.com> Fix one-pane navigation/UI bugs

- Back from the starred mailbox now works.
- Combined view now has the "show all folders" in the spinner.
- Null-out the list context when opening the mailbox list.
- Properly restore the list context when popping from the back stack.
- Disable the account spinner dropdown on the mailbox list.
- Hide the little triangle thing at the right bottom corner of the spinner
when it's not selectable.

Bug 4836064
Bug 4689313

Change-Id: I41d1b6c7024953407b260f5b4b63fbc366e538ca
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
257c037bb5de26688edfeea7c1beecb91b47b109 28-Jun-2011 Makoto Onuki <omakoto@google.com> Use DelayedOperations in ABC

Change-Id: Iadb4def22176cf28bc3a0b78f95b1c7cc9f52f69
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
4689cb7100a8b1cfa188499a9910912d15b3dad3 27-Jun-2011 Makoto Onuki <omakoto@google.com> New account spinner

- Don't use the action bar spinner.
Instead use a custom view to show the current account.
(It's not a spinner; now we show the dropdown list by ourselves,
which gives us more detailed control.)

- Also show the current mailbox name/unread count with the account name.

- Removed the mailbox info loader in ABC.
Instead, now the AccountSelectorAdapter loader loads the current
account/mailbox name, and the unread count as extras.

- Now ABC.Callback.onMailboxSelected passed an account ID as well
as a mailbox ID.

- There's new code paths that can cause the "fragment transaction in
onLoadFinished" exception. We need to fix this properly, but
for now we just use commitAllowingStateLoss().

Bug 4948352

Change-Id: I73bb8b7530f8328ca1c86382ac0a54086ad061d7
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
f4622a8ac78299dc16cb857c5270a2c48f3a7fc0 25-Jun-2011 Makoto Onuki <omakoto@google.com> Yet another action bar fix...

It's a temporary fix. Proper fix underway...

Change-Id: I225e04168f7fae6a3b411659a27e79b28022ac40
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
3c76df4f1f4f4f4e7c068d8f6ea0da17f009916c 24-Jun-2011 Makoto Onuki <omakoto@google.com> Workaround for bug 4946695

Proper fix on the way.

Change-Id: I22549d0e90b521d27271a8160fe8e43dae18defa
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
80d3875d306c60da83e547c573427627911f8a99 23-Jun-2011 Makoto Onuki <omakoto@google.com> Action bar: Use laoder to get current mailbox info

Before this CL, we had this crazy plumbing from MailboxListFragment
to ActionBarController to update the current mailbox name/message count.

This wouldn't work on 1-pane, so now ABC just gets the current mailbox id
from UIC and loads the name/count with its own loader.

Also...
- Fixed bug 4904450 and bug 4460470: Now we consistently use FolderProperties
to get proler display names and message counts.

- Renamed some confusing names in AccountSelectorAdapter

Change-Id: Ic7bea6da6d2859006fb8f9263024c7d5e62b1e7f
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
b0b6eb56f716f3ac0c153b1d4a1b7b2bdfba4335 23-Jun-2011 Ben Komalo <benkomalo@google.com> Search state improvements.

- actually fires off a new instance of our Activity for search, instead
of killing the old one
- exiting search mode from a search result now works and pops the
activity stack
- doing a new search clears the input box as expected
- the search term is actually shown at the top in the results list

Change-Id: Ia6b92042e26a2e44b8cb45fe1d5b3bfb40cfd6da
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
1116194d9fcfb038faa8d606cbbf744b8377648a 22-Jun-2011 Ben Komalo <benkomalo@google.com> Fix search bar sizing.

On phones it was being pushed out beyond the width of the phone.
Make it so that it fits the whole width in phone portrait, and is fixed
size in landscape / tablets.

Change-Id: Ifc712002c4df38ceb4bd3577f0cbb48114b41115
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
f69bcd0123dff62ec916376470c6dd9a71e0d443 21-Jun-2011 Ben Komalo <benkomalo@google.com> Some fixes to the action bar.

This hides the main navigation controls when the search view is shown.
It also fixes issues with rotation when in search mode.

Change-Id: I5ffed8eb7549fc603fc4e4d1868d114be65112c3
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
ac11e3bb99aba883cbbdaccfc2524862a8989701 17-Jun-2011 Ben Komalo <benkomalo@google.com> Some re-arrangements in UI for search.

This moves the logic for performing the search closer to where it will
actually happen (i.e. on Intent resolution). A lot of this is still
temporary code. I will follow up with some larger changes to extend the
UIController API so it doesn't have to do hacks internally.

Change-Id: I1eb84d26ee3dcbfa0b68dbd37dcb0a6180452962
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
0f2763274922e15d4baba7e7228f5765034b9c0d 14-Jun-2011 Makoto Onuki <omakoto@google.com> Add "search mode" to the action bar

- Instead of the search dialog, show the search widget on the action bar.
- Launches a new activity for search, but still uses the temporary search code
- Search still works only on two-pane.

Change-Id: I1d36ad3416c7dff9579cf37e40e49e31c9d99219
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
f5418f1f93b02e7fab9f15eb201800b65510998e 14-Jun-2011 Marc Blank <mblank@google.com> Move Account into its own top-level class

Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
479fdf03aa575ad843e7192a98b098e511b230de 09-Jun-2011 Ben Komalo <benkomalo@google.com> Guard against invalid selections in spinner

This is a stop gap fix for b/4584196
There was a race condition in which the actionbar callback happened
prior to the fragments being ready, and so any callbacks on a mailbox
would explode (and the spinner mistakenly thought the header was a
mailbox)

Change-Id: Id0a24d252472faf97088175b5c413ef554dc3b76
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
7305cf5c8e8332e720da758d3a81267cf8bb7d4b 08-Jun-2011 Todd Kennedy <toddke@google.com> update account spinner properly

Fixes two issues:
1. if a recent folder was selected from the spinner, the user could not
re-select it (even if they navigated to another mailbox using the mailbox
list) unless they manually selected another element in the spinner
2. the recent item "show all folders" did not set the associated account
position, so, when selecting that item, the spinner was not showing the
correct view.

Change-Id: I469f9f28aebd36a348534def28a4c476c0df366d
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
a757aaa055825bb3547ab35f49ccc5227340b4d9 07-Jun-2011 Todd Kennedy <toddke@google.com> Properly display spinner when necessary

Previously, we were deciding whether to show the spinner if the returned cursor
had more than 1 element. However, the cursor would _always_ have more than one
element because it contains a header in addition to the account information.

We now save away the number of accounts and the size of the recent list into the
cursor so we can use those counts to determine if the spinner should be shown.
Both of these counts are necessary as we want to show the spinner even if there
is only a single account as long as it has at least one recent mailbox.

Change-Id: If428c496a548a25f6b5cd7301ddb5c0d6876750c
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
e3924188409b631c9ed53cf0b8f1fb455c3ef67d 07-Jun-2011 Todd Kennedy <toddke@google.com> Add recent mailboxes to the account spinner

The ability to change mailboxes using the spinner is currently only implemented
for the two-pane UI. one-pane implementation will come in a future CL.

Change-Id: If72e9d9d607508553c918f5523e748e8a481ff84
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
69461503fb5faa24c37c86cd54012fb2ec2308be 06-Jun-2011 Todd Kennedy <toddke@google.com> Add "Accounts" header to the AB spinner

Change-Id: I35e4b7295db16db803ede084cf65fa3f2115f770
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java
ad71b358c639b3dc24b5047338af6f6b6b211f65 05-May-2011 Makoto Onuki <omakoto@google.com> Extract action bar related code

...so that we can easily reuse it for the one pane UI controller.

The one pane controller should eventually have its own action bar
controller, but we can use it for the time beeing, until we get
more detailed UI spec.

Change-Id: I10c92963350dad9eb834fd7474c597aedad5eb80
/packages/apps/Email/src/com/android/email/activity/ActionBarController.java