Commit Graph

2444 Commits

Author SHA1 Message Date
Todd Kennedy
02ba344cf2 Only show messages from inbox for account & unread views
Use a sub-selection to limit the messages from the inbox. Also add a unit
test to ensure the selections are working correctly.

bug 3368613

Change-Id: Ia24ef6028ded27c69f982ecbc6b67f35f84d1b6d
2011-01-20 13:20:12 -08:00
Andy Stadler
75e508a794 Merge "Cleanup account name, user name, and summary" into honeycomb 2011-01-20 11:38:21 -08:00
Andy Stadler
373ccb1037 Cleanup account name, user name, and summary
* In AccountSetupNames:
  * Add "Field required" error tag to Names display
* In AccountSettings:
  * Improve IME behavior in text fields - auto-capitalization
  * Prevent empty username
  * Reset empty nickname back to default (email address)
  * Fix broken hint for signature
* Proper trimming in all fields

Bug: 3338435
Change-Id: I2720c4524303ada6dd228866756fc9c3aac173f3
2011-01-20 11:37:39 -08:00
Makoto Onuki
41e1c81b81 Merge "App icon on app drawer shouldn't restart the app" into honeycomb 2011-01-20 10:08:08 -08:00
Todd Kennedy
6bbc689efc Implement final drag & drop spec
Current specification calls for the following:
* Droppable targets: do nothing
* Not droppable targets: grey text (hex #999999)
* Hover over droppable: use label/folder list pressed state
* Hover over not droppable: do nothing
* Destructive targets: background (hex #f10000)

We need to copy the resource from the framework as there is no supported way to
fetch the pressed state drawable during runtime. Adam filed bug 3370043 so we
can specify a drag target state directly in the selector.

bug 3154986

Change-Id: Ifd5c24a3dc46b5a1c64a149904657dda297ed047
2011-01-20 08:41:24 -08:00
Marc Blank
c0a8b2cfb0 Merge "Implement checks before performing background attachment download" into honeycomb 2011-01-19 22:40:35 -08:00
Marc Blank
475c20d3a8 Implement checks before performing background attachment download
Bug: 3339007
Change-Id: I36a8359f3478c37b2ccd6a0cf0381569c592061a
2011-01-19 19:20:38 -08:00
Andy Stadler
b3412d7f5e Merge "Handle leading/trailing space in passwords" into honeycomb 2011-01-19 16:43:22 -08:00
Andy Stadler
858c282277 Handle leading/trailing space in passwords
* Allow, but provide warnings via EditText.setError()
* Remove one last instance of password trim()

Bug: 2981433
Change-Id: I406a4f8b8f27cc5ce90424a8cafe88a677e72f45
Signed-off-by: Andy Stadler <stadler@google.com>
2011-01-19 16:40:15 -08:00
Makoto Onuki
0c75f83f03 App icon on app drawer shouldn't restart the app
When launching Welcome and MessageListXL, make sure they start
as a "main" activity.  This fixes the reported bug.

Bug 3366537

Change-Id: I68facd739bd1dad8eeec52015b0720299d632e11
2011-01-19 16:37:19 -08:00
Todd Kennedy
a33c0c74cc Revert string name change
to prevent churn for the translators, revert the string name change

Change-Id: I22710d810a5f3602ccd53a9cb4d2f31edca572f1
2011-01-19 16:23:42 -08:00
Marc Blank
238b9f2826 Merge "Split out AttachmentInfo into its own top-level class" into honeycomb 2011-01-19 16:19:23 -08:00
Marc Blank
3a761c8038 Split out AttachmentInfo into its own top-level class
* Determine load state and allowability of view/save in constructor
* Extend AttachmentInfo in MessageViewFragmentBase to include views,
  buttons, etc. and to add extra requirements for view/save as
  needed (e.g. availabilty of external storage)

Change-Id: I2ce2b4e71fd784ef0329e391cc0e2d1639f8273c
2011-01-19 16:15:28 -08:00
Makoto Onuki
e539a1973e Merge "Dump widget state to bugreport" into honeycomb 2011-01-19 14:34:39 -08:00
Makoto Onuki
dc200a44a9 Dump widget state to bugreport
This might be helpful someday...

Change-Id: I5a9e0a2948c7ea9fa5c9a7da61d143c10dda7d9a
2011-01-19 14:22:01 -08:00
Makoto Onuki
4911af8879 Merge "Compose: Make the EditTexts easy to focus on" into honeycomb 2011-01-19 13:44:03 -08:00
Makoto Onuki
8ac207f298 Compose: Make the EditTexts easy to focus on
- Now tapping these To/Cc/Bcc/Subject labels moves the focus to
  the corresponding edittext.
- Tapping the bottom part of the screen moves the focus to the
  main EditText.
- Also use paddings instead of margins for the main EditText, to
  expand the hitarea.

Bug 3366831
Bug 3367100

Change-Id: I9b5d18dcc9d7802bfcbd0160befcb008c784d9f7
2011-01-19 13:36:21 -08:00
Andy Stadler
be6910e7a4 Merge "Properly handle unsupported encryption policy" into honeycomb 2011-01-19 12:01:56 -08:00
Andy Stadler
a0d080558f Properly handle unsupported encryption policy
* This fixes the case of:
  * a device that does *not* support device encryption
  * connecting to an account that *does* require device encryption
  * but also supports "non-provisioned devices" (making the encryption
    requirement optional.)
* Added unit test

Bug: 3367191
Change-Id: I894e68c4119a102dad02d2e0815fccdae1e87189
2011-01-19 11:40:48 -08:00
Todd Kennedy
3db3e4b795 widget combined inbox view only shows messages in inbox
instead of showing all messages (e.g. messages in drafts, etc...) the "combined
inbox" view now only messages in the inbox folder. This is now identical to
the "combined inbox" view available in the full email UI.

bug 3368613

Change-Id: I0080b56cd2718a3dce82b279277c63c4f43e86dc
2011-01-19 11:27:41 -08:00
Todd Kennedy
a5de96be71 Merge "Update widget colours / assets according to spec" into honeycomb 2011-01-19 11:03:18 -08:00
Marc Blank
0324017aa0 Fix another case of HTML leakage in snippets
* Add test for this case

Bug: 3285281
Change-Id: If45d33624ac5dbd16d28b45428be29e5a8c51046
2011-01-19 10:59:29 -08:00
Todd Kennedy
290fb65595 Update widget colours / assets according to spec
* Modified font colours for read/un-read emails
* Add chip colours when viewing mail from multiple accounts
* Add calendar icon if message has an invite attachment
* Update background of read/un-read emails

bug 3351761

Change-Id: Id59573d25a6988e9e869335f95778aad28b43912
2011-01-19 09:23:58 -08:00
Marc Blank
985155fddd Merge "Fix regression re: bad folder sync key" into honeycomb 2011-01-19 08:33:40 -08:00
Marc Blank
212a054804 Fix regression re: bad folder sync key
Bug: 3368400
Change-Id: I8bbba33ea0149b6c19a333dcd739208cec6c0475
2011-01-19 08:23:11 -08:00
Adam Cohen
1911a78271 Merge "Updating widget due to API changes." into honeycomb 2011-01-18 23:07:47 -08:00
Marc Blank
7a69ac781b Merge "Don't report connection error when account isn't initialized" into honeycomb 2011-01-18 16:22:04 -08:00
Winson Chung
cb8a5544bf Updating widget due to API changes.
Change-Id: I8623c48e912330145cfd325c962574d322ccc6f0
2011-01-18 15:31:17 -08:00
Marc Blank
aeea97275d Don't report connection error when account isn't initialized
* We report uninitialized for updateFolderList when no mailboxes
  have been created

Bug: 3235788
Change-Id: I337cfeac83bf320e8078e5a837976414fdd93e0f
2011-01-18 14:19:19 -08:00
Makoto Onuki
f72f812f5b Merge "Use proper alert icons on dialogs" into honeycomb 2011-01-18 11:08:56 -08:00
Makoto Onuki
6b21662ba8 Merge "Remove STOPSHIPs regarding CloseTraceCursorWrapper" into honeycomb 2011-01-18 11:08:51 -08:00
Andy Stadler
946239e8a0 Add per-account preference for bkgnd attachments
* Add flag to Account record
* Add checkbox to Account Settings (IMAP & EAS)
* Add checkbox to Account Setup (IMAP & EAS)
* Add flag to backup/restore logic
* Update Account & AccountSetupOptions unit tests

Bug: 3360873
Change-Id: I0c407776ede4110f33716644f6f027938f21130a
2011-01-18 10:53:37 -08:00
Makoto Onuki
49518bb360 Use proper alert icons on dialogs
Bug 3364447
Bug 3241281

Change-Id: Ie791d8d5eae26a848de08658a14d6a09d06d0846
2011-01-18 10:17:23 -08:00
Makoto Onuki
80a2e9109d Remove STOPSHIPs regarding CloseTraceCursorWrapper
The loader crash seems to have been gone.

Bug 3335072
Bug 3335067

Change-Id: Iefc5367e6e394840687b0c2c4f6b75f8e9661d26
2011-01-18 10:04:14 -08:00
Todd Kennedy
2b6d0072df Do not automatically open attached files after saving
After saving an attachment, we no longer automatically start the activity
associated with the attachment mime type. However, we still run the media
scanner to add supported media (e.g. music, pictures, etc...) to the media
content provider.

bug 3266378

Change-Id: I96985438316a33322437ff009fe7e9c597b1c70a
2011-01-18 08:46:53 -08:00
Dianne Hackborn
31e2576791 Follow API changes.
Change-Id: I1ca0fe365b953fa98a462912309a1c9647277ba7
2011-01-17 16:24:00 -08:00
Marc Blank
648e45176b Merge "Read truncated data (even if it doesn't get parsed)" into honeycomb 2011-01-17 15:24:49 -08:00
Marc Blank
a38f61bad7 Read truncated data (even if it doesn't get parsed)
Bug: 3362434
Change-Id: Ifaf992987a1ef0b866506834f8e87047ebb2f62b
2011-01-17 15:14:46 -08:00
Marc Blank
5b2b248466 Default status of added email to 1 (success)
Change-Id: I3825916001e5659fa5465156dbe2d796f0b25444
2011-01-17 13:40:11 -08:00
Andy Stadler
f32bb6e570 Merge "Updates to follow DPM api changes" into honeycomb 2011-01-17 12:55:22 -08:00
Andy Stadler
c2e638351c Updates to follow DPM api changes
* Use getStorageEncryptionStatus() to check device status
* Also, check granted policy on USES_ENCRYPTED_STORAGE

Bug: 3346641

Change-Id: I9e9a45a6d1d3cf4714e27b69cdb5952c841c640d
2011-01-17 12:54:40 -08:00
Marc Blank
755fa67d17 Delete message when Sync/Fetch fails with "object not found"
Bug: 3361222
Change-Id: I885b18612e8b5b4e7b7f50bc73f2b6a76c2242ad
2011-01-17 12:49:22 -08:00
Marc Blank
3dda4c4fdd Merge "Delete PIM data during folder sync/reset" into honeycomb 2011-01-17 12:47:32 -08:00
Marc Blank
03d4363b51 Merge "Mark Fetch'ed messages fully loaded, even if there's no text" into honeycomb 2011-01-17 12:43:49 -08:00
Marc Blank
67d7a741cf Delete PIM data during folder sync/reset
Bug: 3361000
Change-Id: I95305467c17c5c4b75b96dfb06c3c3511eb3f15a
2011-01-17 11:58:30 -08:00
Makoto Onuki
c50b6f685b Use broadcast to detect system account update.
Instead of AccountsUpdatedListener.

Bug 3211657

Change-Id: I1e60092fc06fe80b9914ff7264c24fcbfa950745
2011-01-17 11:03:57 -08:00
Makoto Onuki
f944b6f0aa Merge "Hide the entire tab section if no tabs are visible." into honeycomb 2011-01-17 10:38:09 -08:00
Todd Kennedy
91a1cf1db0 Remove "view" button for .apk attachments
We don't need to allow users to install applications directly from the email
client. Instead, application installation is a two step process; the user
must first save the APK and then find it on the filesystem.

If the user does not want to allow installation of applications from unknown
sources, we don't provide the ability to save.

NOTE: After saving, we still try to open the APK which generates an error
toast. We will be removing the auto-open-after-save feature in a separate CL.

bug 3351137

Change-Id: I0eb1bc8224a154792fe852757e4b23a3059f4392
2011-01-17 10:03:44 -08:00
Marc Blank
7ca950bd2e Mark Fetch'ed messages fully loaded, even if there's no text
Bug: 3361171
Change-Id: I5994d2bd33845140b419ed95e194bcac92a8834f
2011-01-16 18:29:16 -08:00
Marc Blank
d0e795af73 Merge "When syncing folders, read all data first, then process" into honeycomb 2011-01-16 14:16:03 -08:00