Commit Graph

3468 Commits

Author SHA1 Message Date
Makoto Onuki
4209ea36b0 Make ThrottlingCursorLoader smarter
Now the class initially uses smaller timeout, and expand it when detecting
multiple changes in a short period.

This CL makes the UI look more responsive especially on the message list +
message view mode.  e.g. Starring on the message view will quickly be
reflected to the message list.

Bug 3024799
Bug 3027832

Change-Id: Ie2d44c3769d43e3fd0f54ee526556eb3bad5e288
2010-09-22 18:01:01 -07:00
Makoto Onuki
2dbb510657 Hide bottom buttons when message list enters selection mode
Hide the command buttons at the bottom of the message view when the message
list enters the selection mode.

Change-Id: Id825bb5183673e9def055b6480fa180beab51178
2010-09-22 18:00:21 -07:00
Makoto Onuki
c8fb75035f Implement latest selection mode behavior
On the message list,
- Longpress toggles selection.
- Tap opens message

Now it should be in line with gmail.

Change-Id: I1ce441a13fd9b41e3d7d10c2f2e4d43e580db708
2010-09-22 16:51:30 -07:00
Makoto Onuki
e069246d48 Make sure callback is still registered when calling wrappee
This caused callback methods getting run after onDestroy() problem.

Bug 2799534
Bug 3011802

Change-Id: Id505e328bbff096a9f7474c033443ff6663a5fdf
2010-09-22 15:39:02 -07:00
Makoto Onuki
58843f0dc3 Highlight selected message on message list
Also make sure the highlighted mailbox is always visible on the mailbox list.

MessageListFragment now just uses the default background color, which means
it no longer changes background color for unread messages or checked messages.
This should be re-implemented if necessary with the newer wireframe.

Change-Id: I9bfbe9f0711ea4ab56be27778b00298d3033123b
2010-09-22 14:44:23 -07:00
Marc Blank
793c6639ec am 9b5c615c: am deed4505: Merge "Increase EAS command timeout from 20 to 30 seconds" into gingerbread
Merge commit '9b5c615ceea0270878a5b89fc0a063eeb9ffdd3e'

* commit '9b5c615ceea0270878a5b89fc0a063eeb9ffdd3e':
  Increase EAS command timeout from 20 to 30 seconds
2010-09-22 14:41:29 -07:00
Andy Stadler
bb0b75f452 am a9a55512: (-s ours) am ed824a07: DO NOT MERGE Harden thumbnail creation
Merge commit 'a9a55512551609111e7269b6de70688407da4b2a'

* commit 'a9a55512551609111e7269b6de70688407da4b2a':
  DO NOT MERGE Harden thumbnail creation
2010-09-22 14:41:16 -07:00
Andrew Stadler
0813c7051f resolved conflicts for merge of 0d9ed341 to master
Change-Id: I198f760ef1734cf4a64c875236a2352859dc1a72
2010-09-22 14:37:44 -07:00
Makoto Onuki
b4dacf2acf Don't show only special mailboxes on mailbox list
When a new account has just been set up and the app is still loading
mailboxes, keep the mailbox list empty and let ListFragment show
the progress icon, rather than showing "Combined Inbox" "All Starred" etc
without acutal inboxes, which looks like it's broken.

Change-Id: Ia3de4377b701f0033c5dc92f8b6b14651d4d8e1e
2010-09-22 14:03:06 -07:00
Marc Blank
9b5c615cee am deed4505: Merge "Increase EAS command timeout from 20 to 30 seconds" into gingerbread
Merge commit 'deed4505e9ad11626a8163653def57318b2d7d39' into gingerbread-plus-aosp

* commit 'deed4505e9ad11626a8163653def57318b2d7d39':
  Increase EAS command timeout from 20 to 30 seconds
2010-09-22 13:42:22 -07:00
Marc Blank
deed4505e9 Merge "Increase EAS command timeout from 20 to 30 seconds" into gingerbread 2010-09-22 13:39:46 -07:00
Andy Stadler
a9a5551255 am ed824a07: DO NOT MERGE Harden thumbnail creation
Merge commit 'ed824a07ae8389f1d9fb2214ad91356109b35a05' into gingerbread-plus-aosp

* commit 'ed824a07ae8389f1d9fb2214ad91356109b35a05':
  DO NOT MERGE Harden thumbnail creation
2010-09-22 13:29:22 -07:00
Andy Stadler
ed824a07ae DO NOT MERGE Harden thumbnail creation
* Catch some errors earlier;  Log all errors.

Bug: 2905324
Backport from master: Icdf4ec881f404787a0621e606d7e611d5e50aab1

Change-Id: I817a770da2d158984476cfa2b10a5de6bc0b43f8
2010-09-22 13:24:46 -07:00
Andy Stadler
0d9ed341b2 am 16657c9c: Merge "Fix test failures" into gingerbread
Merge commit '16657c9c201089d480feff0e8938ffbde3ffddde' into gingerbread-plus-aosp

* commit '16657c9c201089d480feff0e8938ffbde3ffddde':
  Fix test failures
2010-09-22 13:23:35 -07:00
Andy Stadler
16657c9c20 Merge "Fix test failures" into gingerbread 2010-09-22 13:18:52 -07:00
Makoto Onuki
250ca15b88 Show MessageList with MessageView, rather than MailboxList
In message view mode, show MessageListFragment on the left pane.

TODO: Highlight opened message on message list
TODO: If the opened message is moved/deleted/starred/etc, update
message view
TODO: Collapsible left pane on portrait

Change-Id: I9b26f7291648da0e08bc526b79305ab65ce4d926
2010-09-22 13:13:59 -07:00
Makoto Onuki
353b75b04b Fix NPE -- check isCancelled in onPostExecute
Bug 3024665

Change-Id: I97c122a6c66a7d4245187961cb90ea874d0e305d
2010-09-22 13:12:13 -07:00
Makoto Onuki
1ef511dafd Merge "Ignore and log OOM during bitmap creation" 2010-09-22 13:10:22 -07:00
Marc Blank
65a10186a5 Increase EAS command timeout from 20 to 30 seconds
Bug: 3027271
Change-Id: Ic58fea147d179ffd18f28a8ce5d290a1b37302ce
2010-09-22 12:45:48 -07:00
Andy Stadler
6278dcdeaf Fix test failures
Methods were used by tests only and being stripped by PG.

Bug: 2894378
Change-Id: Ieb1dd0daa8bd380c66a7b1e6151c5e5b22cbe38c
2010-09-22 12:06:41 -07:00
Andy Stadler
dbcef318e9 am def16a33: (-s ours) am ebba88e4: Merge "DO NOT MERGE disallow longpress in WebView" into gingerbread
Merge commit 'def16a33334bbf2674f7016ae0fab0c679eb5ced'

* commit 'def16a33334bbf2674f7016ae0fab0c679eb5ced':
  DO NOT MERGE disallow longpress in WebView
2010-09-22 12:04:32 -07:00
Andy Stadler
def16a3333 am ebba88e4: Merge "DO NOT MERGE disallow longpress in WebView" into gingerbread
Merge commit 'ebba88e4f4b3dd8001c6e1d2e4c1944aef613795' into gingerbread-plus-aosp

* commit 'ebba88e4f4b3dd8001c6e1d2e4c1944aef613795':
  DO NOT MERGE disallow longpress in WebView
2010-09-22 11:50:52 -07:00
Andy Stadler
ebba88e4f4 Merge "DO NOT MERGE disallow longpress in WebView" into gingerbread 2010-09-22 11:07:34 -07:00
Andrew Stadler
625451ed25 Harden thumbnail creation
* Catch some errors earlier;  Log all errors.

Bug: 2905324
Change-Id: Icdf4ec881f404787a0621e606d7e611d5e50aab1
2010-09-22 09:22:15 -07:00
Marc Blank
eff7bbe72b am d414ba53: (-s ours) am d46952e7: DO NOT MERGE: Test validity of port numbers in account setup
Merge commit 'd414ba537266c539023a242784f5281846360b03'

* commit 'd414ba537266c539023a242784f5281846360b03':
  DO NOT MERGE: Test validity of port numbers in account setup
2010-09-21 20:21:06 -07:00
Marc Blank
d414ba5372 am d46952e7: DO NOT MERGE: Test validity of port numbers in account setup
Merge commit 'd46952e7b0d47a4150d140502caf34e3a5276dd8' into gingerbread-plus-aosp

* commit 'd46952e7b0d47a4150d140502caf34e3a5276dd8':
  DO NOT MERGE: Test validity of port numbers in account setup
2010-09-21 18:24:42 -07:00
Marc Blank
d46952e7b0 DO NOT MERGE: Test validity of port numbers in account setup
Bug: 1712475
Change-Id: Iced4875379a804b5072e4df0af25db7bf9473131
2010-09-21 17:46:15 -07:00
Makoto Onuki
cc3c1d46b9 Merge "Rename misnomered constant" 2010-09-21 17:20:55 -07:00
Makoto Onuki
d7f886c5c8 Ignore and log OOM during bitmap creation
Change-Id: I00ca40d98e425eb267b601cc9049af6ecfd2883d
2010-09-21 17:09:01 -07:00
Marc Blank
a459a3e36a am aa2dd114: (-s ours) am ccfc1c29: Merge "DO NOT MERGE: Don\'t disable account box if sync freq -> "Never"" into gingerbread
Merge commit 'aa2dd11451c6b4b062f90c9a30cbcf825e33fad9'

* commit 'aa2dd11451c6b4b062f90c9a30cbcf825e33fad9':
  DO NOT MERGE: Don't disable account box if sync freq -> "Never"
2010-09-21 16:06:07 -07:00
Marc Blank
c41704df6d am 2a6dbe45: (-s ours) am 6f207f5d: DO NOT MERGE: Interpret "busy" on new events to mean "no response"
Merge commit '2a6dbe456c120edc1a621a89cb93d063490f36b7'

* commit '2a6dbe456c120edc1a621a89cb93d063490f36b7':
  DO NOT MERGE: Interpret "busy" on new events to mean "no response"
2010-09-21 16:00:37 -07:00
Marc Blank
aa2dd11451 am ccfc1c29: Merge "DO NOT MERGE: Don\'t disable account box if sync freq -> "Never"" into gingerbread
Merge commit 'ccfc1c29c2f9fff7ee824d342bde1e5d7138722b' into gingerbread-plus-aosp

* commit 'ccfc1c29c2f9fff7ee824d342bde1e5d7138722b':
  DO NOT MERGE: Don't disable account box if sync freq -> "Never"
2010-09-21 15:58:56 -07:00
Marc Blank
2a6dbe456c am 6f207f5d: DO NOT MERGE: Interpret "busy" on new events to mean "no response"
Merge commit '6f207f5df2a1b4190e5da243fd497dcf168899af' into gingerbread-plus-aosp

* commit '6f207f5df2a1b4190e5da243fd497dcf168899af':
  DO NOT MERGE: Interpret "busy" on new events to mean "no response"
2010-09-21 15:56:04 -07:00
Marc Blank
ccfc1c29c2 Merge "DO NOT MERGE: Don't disable account box if sync freq -> "Never"" into gingerbread 2010-09-21 15:54:01 -07:00
Makoto Onuki
4580c3136d Rename misnomered constant
Change-Id: I8d1024a85ad02ba7ce7ecf22f719cab34bf70307
2010-09-21 15:48:43 -07:00
Marc Blank
6f207f5df2 DO NOT MERGE: Interpret "busy" on new events to mean "no response"
* The meaning of a busy status of "Busy" is uncertain; it could mean
  "Accepted" or "Tentative", depending on whether the event was
  created via OWA/Outlook or EAS
* We have interpreted it as "Accepted", which prevents the user from
  actually accepting the event (as a state change is required for us
  to send updates to the server/organizer)
* This CL changes the behavior such that a newly arriving event with
  a "Busy" status is shown as "No response" in the Calendar, thereby
  allowing the user to pick from any of the three possible options.

Bug: 2811859
Change-Id: I321f714e54e66ee8f40f5e2c00587b98bad71a63
2010-09-21 15:30:57 -07:00
Marc Blank
77259fab1b DO NOT MERGE: Don't disable account box if sync freq -> "Never"
Bug: 2905667
Change-Id: Iec214b0fed093ff39dc70d5d821577bcf15f00ed
2010-09-21 15:25:27 -07:00
Andy Stadler
70880a7f29 DO NOT MERGE disallow longpress in WebView
* This gets very confused by the new text copy logic
* Downside is that copy from received message does not work at all
  (it didn't work anyway).
* Will fix in next release by redesigning MessageView layout and no
  longer wrapping in ScrollView

Bug: 2998892
Change-Id: Icd1219f3c45fd4da9259499e9c8a31ed0d3c4c30
2010-09-21 15:04:27 -07:00
Makoto Onuki
263ef7ddd4 Small change to MessageViewFragment
resetView() shouldn't kick LoadMessageTask(). (it's not what its name implies)
Added a TODO.

Change-Id: I0523696f3883a905d9732626824efda598bf10ed
2010-09-21 11:25:53 -07:00
Makoto Onuki
0e89a9a640 Merge "Use the default theme for selected mailbox." 2010-09-21 11:24:56 -07:00
Makoto Onuki
cb32904250 am b2999edd: (-s ours) am c6299fc0: Merge "DO NOT MERGE: Fix ANR in one time initializer and unify BroadccastReceivers." into gingerbread
Merge commit 'b2999edd996cb2ba2e12633e0309a16441d90188'

* commit 'b2999edd996cb2ba2e12633e0309a16441d90188':
  DO NOT MERGE: Fix ANR in one time initializer and unify BroadccastReceivers.
2010-09-21 10:56:14 -07:00
Makoto Onuki
509e46f0b4 am 723c21d0: (-s ours) am b3eefca0: DO NOT MERGE: Fix NPE in Controller and MessagingController.
Merge commit '723c21d0b0f972543bfdd3323096ab848ef2619d'

* commit '723c21d0b0f972543bfdd3323096ab848ef2619d':
  DO NOT MERGE: Fix NPE in Controller and MessagingController.
2010-09-21 10:56:10 -07:00
Makoto Onuki
b2999edd99 am c6299fc0: Merge "DO NOT MERGE: Fix ANR in one time initializer and unify BroadccastReceivers." into gingerbread
Merge commit 'c6299fc0788afb9a066389f239cdfe630fc5c021' into gingerbread-plus-aosp

* commit 'c6299fc0788afb9a066389f239cdfe630fc5c021':
  DO NOT MERGE: Fix ANR in one time initializer and unify BroadccastReceivers.
2010-09-21 10:52:23 -07:00
Makoto Onuki
723c21d0b0 am b3eefca0: DO NOT MERGE: Fix NPE in Controller and MessagingController.
Merge commit 'b3eefca0e1c7fffe1b015e18050aee6867bfbcdd' into gingerbread-plus-aosp

* commit 'b3eefca0e1c7fffe1b015e18050aee6867bfbcdd':
  DO NOT MERGE: Fix NPE in Controller and MessagingController.
2010-09-21 10:52:21 -07:00
Makoto Onuki
c6299fc078 Merge "DO NOT MERGE: Fix ANR in one time initializer and unify BroadccastReceivers." into gingerbread 2010-09-21 10:49:02 -07:00
Makoto Onuki
9523ecf27e DO NOT MERGE: Fix ANR in one time initializer and unify BroadccastReceivers.
- Merged all three BroadcastReceivers into one.
(Changed class name because old ones may have been disabled.)

- Use IntentService to perform the tasks in a worker thread.

Note the new receiver will never be disabled.  We always need to start
exchange.SyncManager.

Bug 2722155
Bug 2416929

Backport of I8241880fc1ee38d85dcdca7e1d46fc2f6b2d375b

Change-Id: I9835cf86846d842e6f2d23014bc0912c3b888a05
2010-09-21 10:48:17 -07:00
Makoto Onuki
b3eefca0e1 DO NOT MERGE: Fix NPE in Controller and MessagingController.
Bug 2553401
Bug 2186777
Bug 2721133
Bug 2684365
Bug 2530534

Backport of I5185d9196deab5ba3a9866e2de2a9be04a04ca03

Change-Id: I192267d7d48d377fe1fc083797cb199f8e94c0c4
2010-09-21 10:47:04 -07:00
Makoto Onuki
023304921a am ea61437c: (-s ours) am 0be6c7c5: Merge "DO NOT MERGE: Fix handling IOException in ImapStore" into gingerbread
Merge commit 'ea61437cf7717d194aa5cdc31b75147d681ef6ee'

* commit 'ea61437cf7717d194aa5cdc31b75147d681ef6ee':
  DO NOT MERGE: Fix handling IOException in ImapStore
2010-09-21 10:45:49 -07:00
Makoto Onuki
19eca498ab am d7e81351: (-s ours) am 32517753: Merge "DO NOT MERGE: Handle multiple IMAP SEARCH results." into gingerbread
Merge commit 'd7e8135184aa4528fb2c974c794b3c38a601c9ed'

* commit 'd7e8135184aa4528fb2c974c794b3c38a601c9ed':
  DO NOT MERGE: Handle multiple IMAP SEARCH results.
2010-09-21 10:45:47 -07:00
Makoto Onuki
ace475175d am 7bc1cee2: (-s ours) am 75c6a611: Merge "DO NOT MERGE: Test for interaction between ImapStore and vendor policy." into gingerbread
Merge commit '7bc1cee27814021df8b22d2099fe7e953bd36fac'

* commit '7bc1cee27814021df8b22d2099fe7e953bd36fac':
  DO NOT MERGE: Test for interaction between ImapStore and vendor policy.
2010-09-21 10:45:44 -07:00