Commit Graph

3945 Commits

Author SHA1 Message Date
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
Andy Stadler
a8133823ec Merge "Fix two errors reported by continous test" 2010-12-09 09:39:12 -08:00
Andy Stadler
68831e7c34 Merge "Allow non-monkey creation of test accounts" 2010-12-08 22:11:09 -08:00
Andy Stadler
c1e8c95d05 Fix two errors reported by continous test
* Add "ForTest" to skip ProGuard stripping
* Remove an unused method

Change-Id: I2af04f39bfafc3b3abd433f158363e37d9daccdd
2010-12-08 22:07:12 -08:00
Marc Blank
8f11b60190 Merge "Move download cancel logic into helper" 2010-12-08 16:58:44 -08:00
Marc Blank
69fc25244b Move download cancel logic into helper
Bug: 3255707
Change-Id: I7f92bd1bb90a4430426123551075746ba9d4af85
2010-12-08 16:57:59 -08:00
Andy Stadler
6175300474 Allow non-monkey creation of test accounts
* Set the debugging flag to allow it
* Add STOPSHIP (it cannot go out like this)

Bug: 2735784
Change-Id: Id5d162f7f1879b76004a24d5d81e769b06ef8d29
2010-12-08 16:43:23 -08:00
Andy Stadler
6a78be9623 Merge "Add preference for background downloading" 2010-12-08 12:28:22 -08:00
Andy Stadler
f983c75b44 Add preference for background downloading
* Defaults to false
* Placeholder text

Change-Id: I7c729eddb7b4d368a0ac47552c911d2ef11b3ee1
2010-12-08 12:28:02 -08:00
Marc Blank
91431ca077 Merge "Clean up initialization of statics in WidgetProvider" 2010-12-08 11:24:02 -08:00
Makoto Onuki
9d2e36412d Merge "Update error banner" 2010-12-08 10:59:04 -08:00
Marc Blank
16badc0822 Clean up initialization of statics in WidgetProvider
Change-Id: I432126a6f403c4d2f280aef5545d1638371ac755
2010-12-08 10:44:35 -08:00
Andy Stadler
3a4b9e140e Fix failing tests in AccountSetupExchange
A recent change was short-circuiting the logic that loads
the UI from the account.  This fix simply resets the flag
so the test can reload the UI multiple times as it tests things.

Change-Id: I7cc53e2766b78172e5a7b05088e94fdec99ae0d6
2010-12-08 00:22:23 -08:00
Makoto Onuki
45e04b009d Update error banner
1. Error banner now pushes down the entire screen, rather than covers it.
2. Switch to the new ObjectAnimator for the animation to achieve #1.
   (Traditional Animation doesn't do this)
3. Dismiss the banner when getting any callback with MessagingException == null
   and progress > 0, only when the account is the one that caused the last error.
4. MessageListXL now registers its own ControllerResult to detect
   connection errors, and more importantly, when they're cleared.

Bug 3240874
Bug 3240406

Change-Id: I07f8e2f589bb1d312859824f9ec398879003ba16
2010-12-07 16:49:26 -08:00
Makoto Onuki
4d02297f4a MessageView: Show progress icon while loading
To avoid flicker.

Bug 3225088

Change-Id: Ic5faea4e6fc810aa751b9f0b9d04537e5dc29970
2010-12-07 14:36:09 -08:00
Makoto Onuki
dff337af12 Merge "Message view: Use system tab style" 2010-12-07 14:24:03 -08:00
Marc Blank
cb5f42dab9 Add CHAR_LIMIT to strings
Bug: 3197247
Bug: 3174971
Change-Id: If1307429cd2fee290d28f75d50b01d9c84534705
2010-12-07 11:09:13 -08:00
Makoto Onuki
2ac95b550d Message view: Use system tab style
Bug 3138021

Change-Id: I18ec66966e984a4f2b9e330d0ef14dbca5cce5e3
2010-12-06 16:51:01 -08:00
Makoto Onuki
0d8742dc14 Merge "New style for the new message notification" 2010-12-06 14:58:19 -08:00
Makoto Onuki
74e094834c New style for the new message notification
Bug 3176956

Change-Id: Id7418fb8bb942230266815167f0a2e79062a9116
2010-12-06 14:51:19 -08:00
Makoto Onuki
6a858c1be2 Make widget open appropriate screen
Widget should open MessageListXL on tablet.

Bug 3253813

Change-Id: I5cfa63b571e443a0217bc9332bb4a76a039143ac
2010-12-06 14:43:51 -08:00
Andy Stadler
69cd842c07 Merge "Add magic intent to force account creation" 2010-12-06 11:11:36 -08:00
Justin Ho
f7adda9a12 am ba2948c6: am 13beedd1: Merge "Merging stat_notify in Email" into gingerbread
* commit 'ba2948c63e0035a454c907d7f03dd4e256a05eb5':
  Merging stat_notify in Email
2010-12-06 10:43:03 -08:00
Marc Blank
454f39f68b Merge "Revert "Workaround for improper timeout for Ping commands"" 2010-12-05 20:45:54 -08:00
Marc Blank
07891f011c Merge "Always return widget from onGetViewFactory" 2010-12-05 20:45:38 -08:00
Justin Ho
ba2948c63e am 13beedd1: Merge "Merging stat_notify in Email" into gingerbread
* commit '13beedd11c3fe743674e835fa1b17da5fd809d72':
  Merging stat_notify in Email
2010-12-04 23:45:26 -08:00
Andy Stadler
d685b469c7 Add magic intent to force account creation
* Add entry point via com.android.email.CREATE_ACCOUNT
* Enable when in monkey mode only
* Walks through setup screens as if auto-populated and as if
  connection checking always succeeds.
* Refactored some common code in AccountSetupBasicsFragment
* Removed obsolete commentary about auto-population of EAS accts
* Also fix minor typo in FLOW_MODE_ACCOUNT_MANAGER_POP_IMAP

Bug: 2735784
Change-Id: Ie7363836cd267673e963e60ae8bc32cab422576e
2010-12-04 22:53:59 -08:00
Paul Eastham
a097596f8b Merge "Merge I31258a5fbcca1f489c8bf6fb2ed8f3dcad5d2e26 into master" 2010-12-04 11:11:00 -08:00
Marc Blank
3181679e95 Always return widget from onGetViewFactory
Bug: 3250431
Change-Id: I161189b6cec2d2a1fe0e511c1e78390673efb0b9
2010-12-04 10:15:32 -08:00