Commit Graph

697 Commits

Author SHA1 Message Date
Todd Kennedy 5e4f1c3872 Allow globals in the providers.xml
There are two ways globals can be specified. There can be only one global
character ['*'] and/or multiple wildcard characters ['?']. The global
will match zero or more characters. The wildcard will match any character.

bug 4090086

Change-Id: I07e3edebd1fe989094c68cf047ce5bc9fb91aba0
2011-03-31 14:28:43 -07:00
Makoto Onuki 44f45f4221 Merge "Don't use findViewById (part 1 -- account setup)" 2011-03-31 11:06:15 -07:00
Gilles Debunne f2bcb222ca Merge "Unused assets removed from Email" 2011-03-30 18:07:54 -07:00
Todd Kennedy aaec6a9a2b Merge "Disallow editing username after account creation" 2011-03-30 14:47:28 -07:00
Makoto Onuki 2fbb3db5d8 Don't use findViewById (part 1 -- account setup)
Added two new functions:
- UiUtilities.getView()
  is a fail-fast version of findViewById().  Crashes when there's no view
- setVisibilitySafe()
  same as View.setVisibility, but doesn't crash even if a view doesn't exist

Let's try to avoid the use of findViewById(), and instead use getView(), *right
after* the layout is inflated, so that we'll always fail-fast if a layout
doesn't have a required view.  (Rather than getting a NPE only when the view
is really accessed, which can be in a code path which is rarely executed--e.g.
only when there's a protocol error.)

Let's only use findViewById() only when we're sure no all the variants of a
layout have the view in question and leave a comment to make it clear it's on
purpose.

(UiUtilities has been moved from com.android.email to
com.android.email.activity)

Change-Id: I36e0bab65a989f5d34cf636f13e1eaee084547af
2011-03-30 13:47:13 -07:00
Todd Kennedy 206109cf44 Disallow editing username after account creation
After the account is created, don't allow editing the user name. We want to
prevent this as the user name is core to the account and changing the user
name is tantamount to creating a new account.

bug 3502279

Change-Id: I1d89710fd48aca67ba13abea5bdbdc1d87941618
2011-03-30 08:54:34 -07:00
Todd Kennedy e369f2772c Merge "Allow globals in the providers.xml" 2011-03-29 15:28:13 -07:00
Todd Kennedy 08534762bd Allow globals in the providers.xml
We now allow a single global character ['*'] to be specified somewhere in
the domain attribute. Additionally, we will replace the string "$domain"
with the matched domain in all attributes -- user name, password and URIs.

bug 4090086

Change-Id: I46a637ed364c1a079e1230fa22393a1bac059b1f
2011-03-29 11:12:13 -07:00
Makoto Onuki 9e53322ee7 First path of MessageList cleaning up
- Menu now works
- Removed a lot of unnecessary/soon-to-be-unnecessary code.
  Especially,
  - multi-selection panel is now replaced with CAB
  - SetTitleTask will be replaced with a loader
- Removed the option menu xml for magic mailboxes
  (The regular one should work for them as well)

Bug 4184142

Change-Id: I52adff6d711232d536b6f00367a240e1faeea14b
2011-03-28 16:36:01 -07:00
Gilles Debunne 8c74176522 Unused assets removed from Email
Change-Id: I485752fac0c25262edde416f132482600eb32013
2011-03-28 14:44:03 -07:00
Makoto Onuki 511d378777 Fix NPE in message view
Message view layout is still unusable with this fix, but it's a start...

Bug 4163869

Change-Id: Ifa88c758b7945b4e58d5ca9f1d618a4402227c7b
2011-03-23 17:24:09 -07:00
Makoto Onuki 39745c3dc0 Fix AccountSetupOptions for phone UI
Bug 4157050

Change-Id: I1addca05b9c56266b28e7449c87b3a5010ed671b
2011-03-23 11:17:46 -07:00
Eric Fischer 721290eb2a Import revised translations.
Change-Id: I6c914be6eb81740ec2f44dc89aee68e8cbc95b0e
2011-03-17 16:53:14 -07:00
Todd Kennedy 6000d4b975 Fix build soju-eng build error
The phone build was missing one layout and a couple dimensions.

Change-Id: I7d48599e82066c2a293f7b442eed644185848c87
2011-03-16 13:49:17 -07:00
Andy Stadler 384ceade8d am f0a75b9d: Merge "Add 55 roadrunner email setups" into honeycomb-mr1
* commit 'f0a75b9d66468d4f6daf4af1a1317bff7fa96194':
  Add 55 roadrunner email setups
2011-03-15 23:51:00 -07:00
Andy Stadler f0a75b9d66 Merge "Add 55 roadrunner email setups" into honeycomb-mr1 2011-03-15 16:04:55 -07:00
Eric Fischer d85b9879f2 Import revised translations. DO NOT MERGE
Change-Id: I07a17bf7191b4cb8420ffb5c55dfe26600278a26
2011-03-15 14:47:59 -07:00
Andy Stadler 36e6f4931e Add 55 roadrunner email setups
Bug: 4086524
Change-Id: I8d7758d3720e45515abae1d071a8b149ac63a4ce
2011-03-15 13:51:57 -07:00
Eric Fischer 47baa33eba Merge "Import revised translations." 2011-03-15 11:59:14 -07:00
Eric Fischer c37565d0bd Import revised translations.
Change-Id: I0d4fd18c71c604d08dd0a0989678382011ca9897
2011-03-15 10:42:39 -07:00
Todd Kennedy d226cad237 am 9c795b02: Fix portrait widget header background
* commit '9c795b025ec9318ee26ae3b4231f0bff28b78f27':
  Fix portrait widget header background
2011-03-15 08:23:05 -07:00
Todd Kennedy 9c795b025e Fix portrait widget header background
When the device is in portrait mode and the widget gets resized to be
narrow (2-by), the header background becomes corrupt. The new assets
now look correct at any size.

bug 3500861

Change-Id: I80a655c8822f2a14f9100afe32c893bf412ac936
2011-03-14 16:48:05 -07:00
Todd Kennedy 45b2412a95 am 09f9fc5e: Merge ""final" tweaks to widget" into honeycomb-mr1
* commit '09f9fc5e4a0ac79deab8fefd30e99cced2ac8317':
  "final" tweaks to widget
2011-03-11 11:50:35 -08:00
Todd Kennedy 46b8ea4b53 "final" tweaks to widget
* Add the background to the widget
* Updated background to a stretchable 9-patch
* Shift "Tap icon to change" text up a couple pixels

bug 3510984

Change-Id: I5ea65b802098c1af08e865f85fb5470e0a00b76b
2011-03-11 10:54:29 -08:00
Eric Fischer f41d724b86 Import revised translations. DO NOT MERGE
Change-Id: I583363eaa54e813f0b7192642acdc434e92c44a4
2011-03-10 11:26:49 -08:00
Eric Fischer 4408de227c Import revised translations. DO NOT MERGE
Change-Id: Ib697dbb79057ad9b692c83a8171be91d8f29d299
2011-03-08 15:41:04 -08:00
Todd Kennedy 9106c9d245 am f42d5c62: Implement UI tweaks
* commit 'f42d5c6234bfb26f63a711fd59076964283fb7f0':
  Implement UI tweaks
2011-03-08 07:58:46 -08:00
Todd Kennedy f42d5c6234 Implement UI tweaks
* Correct allignment of mailbox label
* Sender info & presence alignment fixed
* Header height corrected
* Sender header updated; new asset for background & remove the "fold" asset
* New asset icon and allignment for "show pictures"
* Selected rows have updated background; new assets
* New asset for checked items
* Update divider to be 2px high
* Update selected background for wide message list

bug 3510984

Change-Id: I028ed5619ea7127b0392d9f5b7b00c575b00f3c6
2011-03-07 18:18:30 -08:00
Todd Kennedy 019184c8f7 Merge "DO NOT MERGE: Update assets" into honeycomb-mr1 2011-03-07 16:32:50 -08:00
Todd Kennedy e63337e78b DO NOT MERGE: Update assets
Also tile the widget header.

bug 3500861

Change-Id: Ic8a6a0a8a83974f7c653d9c78450bada7947773a
Backport-Id: I4288c4dd0c71843e18ee370102c2112626a90f50
2011-03-07 16:21:43 -08:00
Eric Fischer a79e8913b8 Import revised translations. DO NOT MERGE
Change-Id: I750fe542ddc2306036173285f5297ff675a7ec15
2011-03-07 12:55:14 -08:00
Todd Kennedy ce9e2d3280 Update assets
Also tile the widget header.

bug 3500861

Change-Id: I4288c4dd0c71843e18ee370102c2112626a90f50
2011-03-07 09:45:59 -08:00
Justin Ho e60640d633 am 7cdb2580: Merge "Updated stat_notify for Email" into honeycomb-mr1
* commit '7cdb25800dd44c8ecdf612ffa5ec03c9b2885992':
  Updated stat_notify for Email
2011-03-04 17:15:22 -08:00
Justin Ho 7cdb25800d Merge "Updated stat_notify for Email" into honeycomb-mr1 2011-03-04 15:39:48 -08:00
Justin Ho 20d414c28b Updated stat_notify for Email
Change-Id: I0a01a971bce46cb31ac8bf500e3ec6824b0ebb4b
2011-03-04 15:33:07 -08:00
Eric Fischer 705a748475 Import revised translations. DO NOT MERGE
Change-Id: Ib46f724811584b83295363036fca442a3f04207b
2011-03-04 13:46:00 -08:00
Eric Fischer bd5557458f am c0d3a8fe: Merge "Remove unneeded large-screen-specific translations." into honeycomb-mr1
* commit 'c0d3a8fedbfd515eeec14a582396ec8cce5d373c':
  Remove unneeded large-screen-specific translations.
2011-03-04 01:09:01 -08:00
Eric Fischer a0fdcee93c Remove unneeded large-screen-specific translations.
Change-Id: I3e384c0b6ceba3e0620e6002c38c665b990c737d
2011-03-03 15:49:31 -08:00
Eric Fischer ded1c27515 Import revised translations. DO NOT MERGE
Change-Id: I33c67829f28644e0eaf1ed6212e3e17d9d02fed5
2011-03-03 14:08:52 -08:00
Makoto Onuki 19b2a7ebc9 New debug setting to enable strict mode logging.
For now it only enables it for the main process.  I've added a flag
to EmailServiceProxy for EAS, but it's not used in the exchange side.

Bug 3500292

Change-Id: I5b27c69fe7cc995a430e9def54b2463076032c78
2011-03-02 10:41:48 -08:00
Eric Fischer 19bc36db61 Import revised translations.
Change-Id: I83e41167865dc8db12aedcb0ec298a18be024c5b
2011-03-01 11:01:08 -08:00
Adam Cohen 6055face4c Adding AppWidget xml flag to make widget resizable
Change-Id: I954fca3a109d8765e848eb135d21cec7e7ec2b96
2011-02-28 13:32:37 -08:00
Eric Fischer 3d27ceb16a Merge "Import revised translations." 2011-02-25 11:48:41 -08:00
Eric Fischer 0a595d4bc0 Import revised translations.
Change-Id: I618ed921f8cc3bc88902ffd1eb374e77c7ed84b2
2011-02-25 11:35:06 -08:00
Marc Blank dc78a769fc Email split, part dix
* The coup de grĂ¢ce for Exchange in Email
* Remove Exchange bits from AndroidManifest
* Update Android.mk to create static jar for emailcommon
* Delete all com.android.exchange files
* Delete all exchange-only strings
* Change loadAttachment service method to take only attachment id and
  background flag
* Add code to AttachmentProvider.openFile() that opens an output file
  for attachment writes
* Make sure deviceId is determined in Email app (not Exchange)

Bug: 3442973
Change-Id: I775600252fd121f474d51cb26fefbfcc50e387af
2011-02-25 10:46:16 -08:00
Makoto Onuki 47bdd174dc Merge "SizeBoundingFrameLayout: framelayout with max width/height" 2011-02-23 15:12:41 -08:00
Makoto Onuki b3c3f1afc6 Pixel pefect: account spinner.
The expanded account spinner is completed, but the collapsed view
needs some more work.  (That'll probably be a rather large CL, so I'll
finish it in a separate CL.)

Bug 3434135

Change-Id: Ia732e6b57b8c0d3e1609c3134b26411539ab6a18
2011-02-23 13:59:11 -08:00
Makoto Onuki de9e706ed9 SizeBoundingFrameLayout: framelayout with max width/height
This will be used to set the max width to the account name spinner.

I gave up on writing tests for onMeasure.  It wasn't easy without adding
a dummy activity and layout.

It'll be used for a fix to bug 3439694.

Change-Id: Ie7569b0661eb732e270e4521fa0d3306f1bdd12c
2011-02-23 13:32:36 -08:00
Todd Kennedy 3f60e9312b Add "info" button to the attachment view
Whenever we remove the "load" and "view" buttons, we should add an "info"
button; where we will inform the user as to why we are preventing her from
seeing the attachment.

bug 3338997

Change-Id: Ic243f1542dec55f5b256eeb67ade50aa90e42009
2011-02-22 08:20:54 -08:00
Andy Stadler f489413142 Add contextual dialogs after notifications
* When security settings notification is clicked, inform user that
  they need to change settings (before dumping them in security
  settings.)
* On an authentication failure, present a dialog to the user explaining
  that the username or password may be incorrect.
* When the device pin/password is expiring or expired, present a dialog
  to the user explaining that it needs to be updated.

Bug: 3238657
Change-Id: I8fca446fa3c1bf87a95938553dbdc362c3df220e
2011-02-18 18:23:18 -08:00