Commit Graph

4123 Commits

Author SHA1 Message Date
Makoto Onuki
4aa8d1850d Make reply/forward/etc buttons selectable with keyboard
Reply, reply-all, forward, star, and the quick contact badge are now clickable
with the keyboard.

Bug 3292854

Change-Id: Ieeb9f50c9e63f251cafb23255dd3f923b2501849
2010-12-16 16:45:38 -08:00
Andy Stadler
5b393bfece Merge "Show attachment download progress/status properly" 2010-12-16 15:30:12 -08:00
Andy Stadler
6624909533 Show attachment download progress/status properly
Bug: 3291532
Change-Id: I3ceab8a67095190898273b9ccd5a1016218edcb2
2010-12-16 15:09:03 -08:00
Makoto Onuki
dd26e24dca New assets from designer's git
- Note the widget preview has moved from drawable/ to drawable-mdpi/.
- Also note not all mdpi assets have their conterpart in hdpi.
  Not sure if it's okay or not...

Change-Id: I087a800cdbb7ea1732df197827c1a0bfe8c4b809
2010-12-16 13:45:05 -08:00
Dianne Hackborn
80769cefb3 Prepare for some changes to LoaderManager/Loader.
Sorry it is a bit ugly, it is to allow this change to be
checked in prior to the first stage of the framework change
without breaking the build.

Change-Id: I1828579019ac0325d19c070a4c62cd79549e7d51
2010-12-16 13:20:39 -08:00
Makoto Onuki
303816534d Don't show app name on action bar
Need to hide the action bar title when showing account spinner.

Change-Id: Id85fa91f1b89fbd9d2a92bd2d175121176b8a2f0
2010-12-16 11:32:28 -08:00
Makoto Onuki
a9939ab165 Merge "Disable "upgrade accounts" for now." 2010-12-16 11:09:06 -08:00
Marc Blank
4970392341 Synchronize properly with ContentCache; document synchronization
Bug: 3291682
Change-Id: I69c4a3b2ee62a41e6488b63deeb975e510a3f554
2010-12-16 10:39:08 -08:00
Andy Stadler
fdfd466fe6 Update widget with slightly newer drawable
Change-Id: Iea4a1a3e0d8b2601d515c02d792636a416de3756
2010-12-15 22:07:55 -08:00
Andy Stadler
e6214d1f87 Merge "Restrict download/display to "attachment" and "inline"" 2010-12-15 18:06:59 -08:00
Andy Stadler
95701c2f2a Merge "Add widget preview" 2010-12-15 17:52:42 -08:00
Andy Stadler
d2fcefc567 Add widget preview
* Also bumped email version number to 3.0 because the version# may need
  to increment to force refresh of the preview tile.

Bug: 3277453
Change-Id: Ic556e49a4b531fcfdbf3c8f6a2537a34ee0f3c63
2010-12-15 17:49:07 -08:00
Makoto Onuki
b358da3344 Disable "upgrade accounts" for now.
This will not be necessary on tablet.

Bug 3122020

Change-Id: Ifff59a11ccf628fdb5b6d007a7a6591db10153ce
2010-12-15 16:22:04 -08:00
Makoto Onuki
2a63ac55e9 Merge "Add null checks to investigate bug 3275738" 2010-12-15 15:42:19 -08:00
Makoto Onuki
ebf0f18cba Add null checks to investigate bug 3275738
Change-Id: I55f83336c5059b7ea6234b9451c60c4c062fdb06
2010-12-15 15:38:27 -08:00
Andy Stadler
014e31a62c Merge "Use generic contact icon for notifications & messages" 2010-12-15 15:27:07 -08:00
Andy Stadler
c1c3b6f21e Use generic contact icon for notifications & messages
* Copies the icon from contacts
* Used whenever the sender doesn't have a local photo
* Used in notifications and in messageview

Bug: 3282187 (notification)
Bug: 3285156 (memory leak from the placeholder graphic)
Change-Id: I528cae20355aa8cce7be37b26f32aa90e092708b
2010-12-15 15:26:30 -08:00
Marc Blank
f7660220a8 Merge "Enable cache logging for debugging (w/ STOPSHIP)" 2010-12-15 14:07:53 -08:00
Marc Blank
74596b3799 Enable cache logging for debugging (w/ STOPSHIP)
Change-Id: I97493430f2aedcb070bc6d1789e47b562394eeb3
2010-12-15 14:06:54 -08:00
Andy Stadler
e3a17f1438 Restrict download/display to "attachment" and "inline"
* Check content-disposition and restrict to these two types
* Add unit test
* Reformatting collectParts (code style cleanup)

Bug: 3242502
Change-Id: I5dcbdda5d4788502113771f4fd1b5fff834a402d
2010-12-15 11:36:02 -08:00
Andy Stadler
884589fddb Merge "Only show attachments UI for downloadable attachments" 2010-12-14 20:27:15 -08:00
Andy Stadler
05340736da Only show attachments UI for downloadable attachments
Bug: 3286678
Change-Id: Ied64674cbfaef95228d5d3d8c99e5f5989b8a3c0
2010-12-14 20:19:52 -08:00
Eric Fischer
11ea62d8e1 Merge "Import revised translations." 2010-12-14 17:36:23 -08:00
Makoto Onuki
00d10299b5 Merge "Store application context to avoid activity leak." 2010-12-14 17:30:15 -08:00
Makoto Onuki
e1b4d2cd4a Store application context to avoid activity leak.
Bug 3285156

Change-Id: I579cf628d178cabf999fc7cd63765298d2082944
2010-12-14 17:14:35 -08:00
Marc Blank
ef2261fa00 Merge "Fix placement of invite icon in narrow mode" 2010-12-14 16:52:02 -08:00
Marc Blank
de39190bc1 Fix placement of invite icon in narrow mode
Bug: 3285416
Change-Id: I36a78eb486a45b780663a8fb24ee092b964ba1b0
2010-12-14 16:31:24 -08:00
Eric Fischer
e23530456c Import revised translations.
Change-Id: I34ffef45bbff0751e940c063b2e45da27a3a7b26
2010-12-14 13:57:15 -08:00
Andy Stadler
8ec0dcfe0d Fix NPE on rotation
* onAttach is called fairly early when rotating, so it needs to do
  very little.
* or in this case, defer some work until onResume

Bug: 3170922
Change-Id: Ie760125c5f32b293f8ba1753f2993de0d7439b56
2010-12-14 11:53:41 -08:00
Makoto Onuki
9afd6bc59f Merge "Fix unit tests" 2010-12-13 16:45:50 -08:00
Andy Stadler
f4b855c9bf Merge "Turn down email logging to shippable levels." 2010-12-13 16:40:19 -08:00
Andy Stadler
fd5a5f14ea Turn down email logging to shippable levels.
Change-Id: I8426743aebef2329c8958926d7b29abe1309feb0
2010-12-13 16:32:02 -08:00
Makoto Onuki
c849936a36 Fix unit tests
- Now ProviderContextSetupHelper.getProviderContext() invalidates DB cache

* MailboxAccountLoaderTestCase
- Save hostauth properly
- (ProviderContextSetupHelper invalidates cache before each test)

Bug 3280911

* SmtpSenderUnitTests
- Use ProviderContextSetupHelper to create isolated context,
  which now also invalidates DB cache

Bug 3280913

* MailboxFinderTest
- When kicking Controller.Result methods directly from tests,
  call the raw callback, rather than the one wrapped with
  ControllerResultUiThreadWrapper, to make it synchronous.

Bug 3280898

* MessageViewTest
- Disable testOpenMessage()
  This test doesn't work because it sets up test data in an isolated
  context but the activity/fragment don't see them because they
  use the real context.
  I have no idea why it worked before... Maybe because there were
  accounts/mailbox/message with the same ID in the DB by chance.

Bug 3280905

Change-Id: I6beb08c58fff102e90bebd2c35f70820268b9e62
2010-12-13 16:29:57 -08:00
Marc Blank
04fb27841c Merge "Fix unit tests" 2010-12-13 15:33:30 -08:00
Marc Blank
0f27b78669 Merge "Implement prefetch of IMAP/EAS attachments" 2010-12-13 15:33:13 -08:00
Marc Blank
75a873be84 Implement prefetch of IMAP/EAS attachments
* Load attachments in the background for IMAP/EAS messages
* Download an attachment from account X if:
  1) 25% of total storage free
  2) Attachments for X use < 1/N of 25% of total storage, where N is
     the number of AccountManager accounts
* Add accountKey to Attachment table for performance

Change-Id: I913aa710f34f48fcc4210ddf77393ab38323fe59
2010-12-13 15:32:57 -08:00
Marc Blank
06a2f4a3b1 New message list formatting per pixel perfects
* Need icon assets (attachment, meeting, star on/off, and
  checkbox on/off)

Change-Id: I6780fb354584ce5ea398b555a8485cf600617586
2010-12-13 15:32:05 -08:00
Marc Blank
171b9cb1f5 Fix unit tests
Bug: 3280929
Bug: 3280926
Bug: 3280921
Change-Id: Id81baecf6f1f0c7fedd9d6d623f664f49861fb25
2010-12-13 15:29:33 -08:00
Andy Stadler
f946ff0019 Fixed issues that cause rotation to NPE
* Add the checker fragment (instead of replacing)
* Don't refresh progress/error dialogs until onResume (a bit later)
* Don't recreate terminal error dialogs that were automatically
  regenerated by the fragment manager.

Bug: 3020074
Change-Id: Ia2947965b758f6846c62ac394ce51da2432523ee
2010-12-13 13:58:40 -08:00
Andy Stadler
2164e8bc2d Merge "Add scrollview to all setup activities" 2010-12-13 11:05:06 -08:00
Makoto Onuki
23d6d9cf24 Merge "Controller.Result callbacks should all have accountId" 2010-12-13 10:50:18 -08:00
Makoto Onuki
aef9515ee7 Controller.Result callbacks should all have accountId
- Added accountId to loadAttachmentCallback/loadMessageForViewCallback

- Cleaned up LegacyListener/MessagingListener.
  Removed the constructors which take messageId and attachmentId, which
  are used to bridge loadAttachmentProgress, which the callsite doesn't know
  these IDs.  The inconsistency (only loadAttachmentProgress() uses the member
  messageId) doesn't look too good, so extracted this into a separate class,
  MessageRetrievalListenerBridge.

Change-Id: I46303e50df2b0e1fe8616e7c9cef632ac14f23aa
2010-12-10 18:11:44 -08:00
Andy Stadler
4f2f603bb2 Add scrollview to all setup activities
* Prevents hidden elements while keyboard open
* Buttons float to bottom in portrait mode

Note: Actual positions & sizes are non-final


Bug: 3188940
Change-Id: I1ee849a7dadc7da874df0fb420101c38d8e01f37
2010-12-10 17:53:49 -08:00
Marc Blank
369daac5c3 Merge "Prevent display of incorrect widget title on orientation change" 2010-12-10 15:32:05 -08:00
Marc Blank
3df4adc041 Merge "Delete attachment files when wiping Email data" 2010-12-10 15:31:19 -08:00
Marc Blank
8b818ea568 Delete attachment files when wiping Email data
Bug: 3276145

Change-Id: I8fd48a7b2c312929e9a4caf3682dadd610c997e9
2010-12-10 15:30:25 -08:00
Marc Blank
7fcc12f799 Prevent display of incorrect widget title on orientation change
Change-Id: Ib43e3d4e261a65f0c7a49b8595131e0b0150484a
2010-12-10 10:04:00 -08:00
Eric Fischer
ed47cd81c5 Import revised translations.
Change-Id: I3e06adb0ef6c40fd0ad36b618100248a3f2292bf
2010-12-09 16:06:49 -08:00
Andy Stadler
3dedc8b191 Defragment AccountSetupBasics
* This was an early attempt at fragmentation
* But it turned out that no fragment was needed here - it is
  not shared or reused in any way.
* Precursor to doing final layouts for the activity.
* Tested working:
    Automatic provider lookup
    Manual
    POP/IMAP and EAS flow modes (from accounts & sync)
    Force account creation intent
    Provider note
    Duplicate account detection

Change-Id: I434edd4b152391d36e70440873932db3ec1a1c99
2010-12-09 11:05:34 -08:00
Andy Stadler
e7f4d3ebfc Handle upgrade path for adding DPM policies
* All active admin checks now go through common method
* Common code check both isAdminActive and the new (upgrade) policies

Bug: 3253179
Change-Id: Ie81f35906c164051f38c1f1f637d0c04b37eef16
2010-12-09 10:09:58 -08:00