Commit Graph

6045 Commits

Author SHA1 Message Date
Ben Komalo
294bea6e93 Merge "Fix action bar text styles." 2011-07-12 10:00:19 -07:00
Ben Komalo
9e8da783a8 Fix action bar text styles.
This makes custom styles in landscape,portrait, and tablet mode since
the action bar real estate differs in those modes.

Bug: 5010826
Change-Id: I2bd6bdcf9adc44a4d0084d4b2bfbffb472f03643
2011-07-11 18:29:18 -07:00
Daisuke Miyakawa
b4983afcec Merge "Reflect changes in chips library" 2011-07-11 16:53:29 -07:00
Ben Komalo
c456c257aa Fix missing imports from bad eclipse settings
Change-Id: Iebc2faa4cb8b125a5ee8071119daa771c66b54b2
2011-07-11 14:16:13 -07:00
Daisuke Miyakawa
9753d2fde1 Reflect changes in chips library
Must be with Iad5b8444f4b1949666d93ad43a34de057aba560e

Bug: 4996797
Change-Id: I5f83103628c14dd5079515c46c42a6f43d4f194c
2011-07-11 14:14:18 -07:00
Ben Komalo
7a29fb97b1 Misc compose bug fixes.
- empty subjects should still be prepended with "Re:" and "Fwd:" when
replied/forwarded
- the compose body was being vertically centered

Bug: 5008785
Change-Id: I28e4fac8457c4fd18c764daa35d9deea1646474b
2011-07-11 14:07:12 -07:00
Ben Komalo
b03d8088f6 Merge "Filter out Search mailbox from recents." 2011-07-11 13:52:12 -07:00
Ben Komalo
cf7cd933db Filter out Search mailbox from recents.
Bug: 5015109
Change-Id: I4e4982bbedc388529eb2f3a9c06ecac47a0a85f0
2011-07-11 13:07:22 -07:00
Ben Komalo
e05f511a4e Add entry in settings to clear trusted senders
Bug: 5011682
Change-Id: I09a557e4bb0ce3e17f796bcc5693e405f23e8c7e
2011-07-11 12:14:26 -07:00
Ben Komalo
1100ee5722 Merge "Update compose view action icons" 2011-07-11 12:11:23 -07:00
Ben Komalo
faff1fab83 Merge "Fix actionbar text alignment" 2011-07-11 10:47:37 -07:00
Ben Komalo
36aeaa6f7e Merge "Fix compose body alignment." 2011-07-11 10:47:16 -07:00
Ben Komalo
1aa5e18902 Update compose view action icons
Don't use split action bar in phone compose view (we lose too much
vertical real estate) and just tuck a lot of the menus under the menu
item.

Bug: 5011815
Change-Id: I04b009556a5984fa4b60f54f2d094c3b7c8a5c78
2011-07-11 10:23:22 -07:00
Ben Komalo
396a425d79 Make search icon appear again.
The CL I just checked in to reduce the invalidateOptionsMenu calls
removes the search icon because it expects the message list to be ready.
Instead of just invalidating the menu a bunch more, just make it so that
the icon is always shown, but we can't actually search if the message
list isn't ready. The time between the icon being shown and the list
being ready should be miniscule.

Change-Id: I5dfe9363cc904833253cf1fceeeb2af2ec389217
2011-07-11 09:44:33 -07:00
Ben Komalo
f4f10a3fdf Make client certificate requests optional.
This prevents things from always failing if the server requires a client
SSL certificate.

Note that the solution used to determine if a certificate request was
made for a given request is approximate; it is timestamp based and can
theoretically give a false positive. In practice, this is very unlikely,
since another cert request had to have happened around the same time,
AND the response must be a 401/403.

Change-Id: Ieb77cf91db3bd52ba4adf1fb07357fef7e204ba5
2011-07-11 09:28:33 -07:00
Ben Komalo
490708b079 Merge "Prevent wasteful calls to invalidateOptionsMenu" 2011-07-11 09:02:32 -07:00
Ben Komalo
b0a14e4f1a Merge "SmtpSender: Send EHLO that adheres to RFC2821" 2011-07-11 09:01:53 -07:00
Ben Komalo
025d29fd4b Fix some missed account setup flags.
There were two places where account flags were being set on setup: one
was in manual setup when the user selected the account type
(pop/imap/eas), and another was when it was automatically determined
from XML. The two paths were inconsistent and one was setting bits like
SUPPORTS_SEARCH but the other wasn't.

This fixes being able to search in IMAP

Bug: 5011932
Change-Id: I50eada7485aaef4e2a85d25fa7eb9ac7ab03093a
2011-07-10 18:26:15 -07:00
Ben Komalo
a920a33cce Fix actionbar text alignment
Workaround a bug in the framework where an explicit gravity=left
seems to actually mean right. We probably shouldn't explicitly set it to
left anyways, and let it be the default, since the framework will do the
right thing when RTL locales are supported.

Bug: 5002512
Change-Id: I9090a676849d3b6f5e1abc812ef6fc2e049ac6bf
2011-07-10 18:10:31 -07:00
Ben Komalo
adbe08fb6a Fix compose body alignment.
Bug: 5012017
Change-Id: If54cb3dc0c7888437a344b41fdaa4199653426a1
2011-07-10 18:07:56 -07:00
Ben Komalo
6f31573f00 Support SMTP servers not requiring auth
We were unconditionally setting auth credentials even if the checkbox to
require credentials was unchecked. This prevented setup for certain
outgoing servers

Bug: 4291105
Change-Id: I27f94f02b85b097d2c6dbb896254367e8a15415b
2011-07-10 17:58:06 -07:00
Ben Komalo
cac58e590c Merge "Fix notification Intent." 2011-07-10 14:12:48 -07:00
Ben Komalo
e9188307f2 Fix notification Intent.
This changes it so that the message list is shown if there are multiple
unseen messages.

Bug: 5011855
Change-Id: I14cbcfaa32cc5e2b4cb718449c62b8f39b290d4d
2011-07-10 14:02:50 -07:00
Makoto Onuki
7dd70efb5c Merge "Per-mailbox settings" 2011-07-10 12:15:29 -07:00
Makoto Onuki
1ddc2ca4a7 Per-mailbox settings
- Use PreferenceActivity, in the old style, meaning without PreferenceFragment.
- If setting Inbox, change the account settings instead of mailbox settings.
- Use the DialogWhenLarge theme, meaning it's a full-screen avitity on the
  phone and a dialog on the tablet.
- Also fixed the bug that we the menu items that are made invisible by
  UIControllerBase may be made re-visible by the 1-pane controller.

TODO The menu item shouldn't be shown for non-syncable mailboxes.

Change-Id: I02b2faf6f593e1e2eb370217c27801aa58ca7e6c
2011-07-10 12:09:51 -07:00
Makoto Onuki
986a0d91da Merge "Fix bug 4982804 / nested fragment transaction" 2011-07-10 12:03:07 -07:00
Makoto Onuki
2ac164f609 Fix bug 4982804 / nested fragment transaction
Post MessageOrderManager callbacks instead of calling them directly
to break the loop.

Change-Id: I033121f7bdbadf6edd7a0fab87b960b737da820e
2011-07-10 12:00:46 -07:00
Makoto Onuki
3db100da46 Merge "Make nested folders selectable again" 2011-07-10 11:55:00 -07:00
Makoto Onuki
a3ce177fa4 Make nested folders selectable again
Bug 5009065

Change-Id: I58bcb748848592414ec2334951e57693ac24cd39
2011-07-10 11:53:32 -07:00
Ben Komalo
46cdd47e83 Merge "Use the proper server ID for the message." 2011-07-07 14:40:06 -07:00
Ben Komalo
9ec3bcb3b6 Use the proper server ID for the message.
This was accidentally using the server ID of the folder when being
fetched.

Bug: 5002236
Change-Id: Id0df5fb1d18afd8e0cd05157e8033f08dcf084fe
2011-07-07 17:02:28 -04:00
Marc Blank
8067daaa0f Merge "Add IMAP support for the "replied" state in messages" 2011-07-07 12:00:24 -07:00
Marc Blank
50a092c3d6 Add IMAP support for the "replied" state in messages
* Handle replied in new messages and updates
* Code added for upsyncing replied state, but the CL for
  setting this state isn't yet submitted

Change-Id: I6f3ff56475d70f686f96ed6a84fae3468f42b1c8
2011-07-07 12:00:07 -07:00
Eric Fischer
d15a3fbf57 Merge "Import revised translations." 2011-07-07 11:34:38 -07:00
Eric Fischer
321286fedf Import revised translations.
Change-Id: I95a7e35ac39e85b2d007f9a8dda712fb3038ebba
2011-07-07 11:32:35 -07:00
Ben Komalo
7891106a7d Write reply/forward flags on Controller.sendMessage
- also fix some mixups with the actual icon states

Bug: 4947145
Change-Id: Iec1bbfc46ac956a6bf050e4fb162b94ea3c6b316
2011-07-06 18:10:16 -04:00
Ben Komalo
33d6307d4b Prevent wasteful calls to invalidateOptionsMenu
The app is spending a lot of time in startup inflating XML. I suspect a
lot of it is due to the refreshActionBar() calls.

On a normal startup with NO refresh, the action bar was rebuilt 6 times.
If a refresh happens, the refresh callbacks get called in rapid
succession (20+ successive calls is not uncommon), which seemed really
wasteful.

Change-Id: I05feb56ba7fafb109d820328f591526945ca0a5f
2011-07-06 11:19:40 -04:00
Ben Komalo
d8ab562d0d Reduce startup time via Welcome.
In the common case, we don't need the "waiting for sync..." message, so
avoid inflation in those cases and just inflate on demand.

Also do a quick drive-by fix for the error message being pushed in way
too much on phones

Change-Id: Ie7a8472194659a52069d1ee21e0a0cb9b6fc91ba
2011-07-06 11:14:04 -04:00
Jon Starling
ea11bfd6fc SmtpSender: Send EHLO that adheres to RFC2821
Adhere to RFC2821 Sec. 4.1.3 Address Literals should be enclosed by brackets and
prefixed with 'IPv6:' if the sender is an IPv6 host

Original author: Jon Starling

Bug: 4207470
Change-Id: Id327930001188186713e38d1ce8ecc1dad8cfbc0
2011-07-05 12:50:34 -07:00
Ben Komalo
e76962b1b9 Revert "Enable SD card encryption policy when emulated"
This is a manual cherry-pick of c379ebe372
This reverts commit 7fd14be804

The introduction of proper SD cards breaks the invariant that "external"
storage can be encrypted. Unfortunately, this means that accounts with
that policy bit set will have to be removed for now.

Accounts with the security policy set will be forced to go through
security provisioning on the next sync, using the regular mechanisms of
showing a notification with "Security update required", and then having
it fail. :(

Bug: 4466311
Change-Id: I68119b14f8d198779c2073296e228bc6772136ee
2011-07-04 16:16:07 -07:00
Ben Komalo
0268581de2 Merge "Be explicit about disabling drag n drop in search" 2011-07-04 15:59:00 -07:00
Ben Komalo
b8dc7beca2 Merge "Quick fixes to unread count" 2011-07-04 07:38:48 -07:00
Makoto Onuki
96e084e67a Merge "Work around for bug 4674712" 2011-07-01 16:39:46 -07:00
Ben Komalo
1b4b6cf560 Be explicit about disabling drag n drop in search
It was accidentally happening because search doesn't show the mailbox
list, but explicit > implicit.

Change-Id: Ifb8354dbb366f4c8328bef31d4e251166ae6876a
2011-07-01 16:36:44 -07:00
Ben Komalo
ec9e903ce2 Merge "Fix some stale TODO's" 2011-07-01 16:36:35 -07:00
Ben Komalo
fdd99f5486 Merge "Remove some stale stopships and TODO's" 2011-07-01 16:36:29 -07:00
Makoto Onuki
8b72c7eb8d Work around for bug 4674712
Seems like we're getting onItemClick() on header rows, which are
supposed to be disabled.

Change-Id: I03b108c508f46368cc420049eed67438af7a7735
2011-07-01 16:30:33 -07:00
Ben Komalo
130bf263da Remove some stale stopships and TODO's
Change-Id: I3221b3c35c5ffb464756f9de288bf36f560cf8fb
2011-07-01 16:29:21 -07:00
Ben Komalo
4abf58237a 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
2011-07-01 16:21:31 -07:00
Jorge Lugo
7d243000d4 Merge "Added "replied to" and "forwarded" icons in message list" 2011-07-01 15:05:25 -07:00