History log of /packages/apps/Email/src/com/android/email/widget/EmailWidget.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bc47398187c6ffd132435e51d8d61e6ec79a79db 25-Sep-2012 Paul Westbrook <pwestbro@google.com> Merge Email1 into MR1

Change-Id: I45289d46b65faffc7a3a3dd46382899162f3aaab
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
cc0185f07c9198008d8dc685ae9979f3e35e8539 28-Jun-2012 Marc Blank <mblank@google.com> Manual merge of Email from jb-ub-mail

Change-Id: I564ddf433d371f45ba78a10f73bb182d484c56f2
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
e3aa22bfa58f0f21fc4be3acd78c11d7455702cc 12-May-2012 Mindy Pereira <mindyp@google.com> Avoid race conditions between widgets.

Seems like calendar and gmail both lock on the cursor, since it would
appear it can be changed in a binder thread

possibly fixes b/6464453 Nakasi: Email1 crash, possibly widget related
without a repro case, cant be 100% sure

Change-Id: Iad22f0236bd4bc16d0eaf53ad20d8db040535d6a
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
3a738dadfd91a40ea1aebdab0563eba0ee5819c3 03-May-2012 Mindy Pereira <mindyp@google.com> Make tapping the widget header open the inbox.

The logo was just the tap target before.
Fixes b/6434727 Email widget top area not clickable inconsistent with gmail

Change-Id: Idf2d2e4afdf581ee76f134142f9d7d5034e2eab9
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
07676012f7e4060faa0d23dc6068e9dcdd4a4106 09-Jan-2012 Paul Westbrook <pwestbro@google.com> Fix widget updates

Fix widgets that stop updating. If the Launcher got killed, the Email
widget service gets unbound. When this happens the cursor loader for the
widget is stopped. Since widget is relying on the loader to update the data,
when the loader is stopped, the widget would never update.

Now when email recognizes a change, it will send a broadcast intent, which
will cause the widget service to be started, if it isn't.

Bug: 5811810
Change-Id: Ia840e58f10e780b94440119662c2e48e7785c507
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
21e4fe49b68738523ebdc8c340469a46d79ed691 08-Nov-2011 Mindy Pereira <mindyp@google.com> Share background styles with gmail.

Part of b/5520048 unread/ read contrast is bad for conversation list items on tablet

Change-Id: I0a5848852b15ead11bef3d56a2c1e1b324f6da73
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
d94522c6d9b3afad6b6796bc58d5a31b11d7b16d 21-Oct-2011 Ben Komalo <benkomalo@google.com> Make Email widget more accessible.

Bug: 5480096
Change-Id: I58fe6bd070c7d8058f2a920012c3260bfed614b9
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
227514c1cfe0f5ddafb84ddc10afb88c3839cfa1 21-Oct-2011 Ben Komalo <benkomalo@google.com> Remove stale strings in widget.

We can't tap to configure anymore, at least not according to the old
method.

Bug: 5451924
Change-Id: I997e96a9bab36aecf68a5daeedff6e7442a848a4
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
561004883da8d1c5507c163eab7237262e4abbaf 14-Oct-2011 Ben Komalo <benkomalo@google.com> Fix widget update to properly refresh.

Bug: 5413224
Change-Id: Id66c7dc8aac8b5e24c7d5c5b1633c9c3ab981b15
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
3532e56591ad3e76da678ad9004f060a1c963bb2 13-Oct-2011 Ben Komalo <benkomalo@google.com> Always pop back to main app from widget.

Bug: 5445267
Change-Id: I992a8a1c4402ba756787957766e8be3c68e064f8
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
8466f79a06433bf3d05a770578c72b2b60e1bd7c 26-Aug-2011 Ben Komalo <benkomalo@google.com> Asset drop.

- this syncs up the UX repo with the developer repo so that the assets
now match. We should be able to do wholesale drops/diffs from now on.
- lots of changes to widget so that it is (mostly) up to spec now, and
matches the preview

Bug: 5225385
Bug: 5205578
Bug: 4320895
Change-Id: I8ccbadcfc17cdb406599497edc91165809f55d68
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
1f59271769e372c509d87e3a3adb47be196fb6f6 24-Jun-2011 Jorge Lugo <jlugo@google.com> Widget logo opens up mailbox

Pressing the email widget's logo will open up the account's inbox.
Also, composing a new email open the compose window for that
account instead of an arbitrary account as before.

Bug: 3366819
Change-Id: I03c0d6973f5428b2044e755f41fcc6f4da225afa
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
f5418f1f93b02e7fab9f15eb201800b65510998e 14-Jun-2011 Marc Blank <mblank@google.com> Move Account into its own top-level class

Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
bc7cd16ec239a4df184a86b3d5ec1ba305b224b6 03-Jun-2011 Todd Kennedy <toddke@google.com> Fix NPE if message displayName is null

the spannable string builder assumes the given char sequence is non-null.
we now ensure that's always the case.

Change-Id: I12e7081e5348d797feab6ad17452b73a52feaf13
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
cf772cc8ad38fe4eb929964c3839d7388dfd585c 02-Jun-2011 Todd Kennedy <toddke@google.com> update UX according to specs

Display the mailbox name as the widget title and the account name
as the secondary title.

Change-Id: Ibb36d4897e02b8cbc501eae9b27ee8381fe91e1a
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
7f4cf3c46b0dd1bc001c547807e83b7c280f074b 02-Jun-2011 Todd Kennedy <toddke@google.com> Hook account/mailbox picker to widget

now when adding a widget to the desktop, you can pick the account
and mailbox.

Change-Id: Id3d2c21b349af58459304ac5a068402d67f4d0f7
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
fa1b3a8f37eada5efad690b7abd32ae248aa2f2b 01-Jun-2011 Todd Kennedy <toddke@google.com> Save widget config to shared preferences

The way the config activity communicates with the widget will be through
shared preferences. We now read / write shared preferences for widget
configuration. One step closer to the configuration activity...

Change-Id: I7c54259d84ad8d304a61652af5b3edff4c7d67db
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
44f5cd67c97da6a5c7e63a73b4dca7057b83cdbb 01-Jun-2011 Todd Kennedy <toddke@google.com> Remove widget views

The new widget UX allows for a single display mode for the widget. This can
be configured when the widget is added or at a later time during widget
re-configuration.

We don't have the configuration activity (yet). We first need to restructure
the widget to take a single account / mailbox combination. Hooking up the
configuration activity will occur in a future CL.

Change-Id: I38a5796c44938a6abd0d2bb50ac77241cc86a497
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
53ea83ebf91f820692e8fa8e781f5cc982dd94db 14-May-2011 Ben Komalo <benkomalo@google.com> Move Mailbox to top level class.

No other changes made.

Change-Id: I3d8f3c521dc0d902be313b25252b4b6a4a96e7ee
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
acef8061ffe0b08583320c19ee4e87e18ea57772 31-Mar-2011 Makoto Onuki <omakoto@google.com> Merge "More use of EmailAsyncTask"
af6079c823d045bb14abb601cc9c7fd48261313f 29-Mar-2011 Makoto Onuki <omakoto@google.com> More use of EmailAsyncTask

... for Welcome and EmailWidget. So that now it's safe for onDestroy()
to be called while a task is running. (onDestroy cancels it.)

Change-Id: I660b471465170e1d1d0ce153571fb924ae703d7d
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
2fbb3db5d86210d03175ce77ff08c989a96c5864 28-Mar-2011 Makoto Onuki <omakoto@google.com> 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
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
897a0ea81c8cddcb142d6ac7f7c47801858c8537 09-Feb-2011 Makoto Onuki <omakoto@google.com> Refactoring widget part 2

- Extracted the loader
- Extracted ViewType and introduced WidgetView.
WidgetView is ViewType + mutable fields, such as account id.
WidgetView now owns the method to switch views.

These two are basically in preparation to address the message count bug.
(we're showing total message count where it should be the unread count,
which is a bit tricky because it'll require two different queries.)

- Also simplified the threading model in EmailWidget to fix potential
theading issues. (now (almost) everything works on the UI thread)

Bug 3431240

Change-Id: I9f8a268210995f1135baabe88b49b274272708d4
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
9b1906337afaf0a73e527f3b59241808edb222d1 22-Feb-2011 Todd Kennedy <toddke@google.com> Only show chip if we have >1 account

bug 3435487

Change-Id: I42668fc9d6f118a83943fbe00edf5eb28b7749d6
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
31d9acbf0623872f9d4a2b3210b5970854b654c7 12-Feb-2011 Marc Blank <mblank@google.com> Email split, part huit: Refactor constants, clean emailcommon

* There are three pieces to this CL (sorry):
1) Move and/or rename some constants into emailcommon
2) Move Utility to emailcommon, moving the few UI
related utilities back into Email (FolderProperties
and UiUtilities)
3) Remove all references to resources from emailcommon
* The three pieces relate in that, between them, they allow
the emailcommon static library to compile cleanly

Bug: 3442973

Change-Id: Ic5e3abaa2a1b36999e0b6653c6c2134ea1bd544f
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
a7bc0319a75184ad706bb35c049af107ac3688e6 10-Feb-2011 Marc Blank <mblank@google.com> Email split, part six: EmailContent

* Moved EmailContent to emailcommon

Change-Id: Ib3db1bfcfe74554c0e5afd3cfce6d72f26e9aeb9
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java
314a51cb1d5bc538f069b6b13d8dffd575a5cc44 08-Feb-2011 Makoto Onuki <omakoto@google.com> Refactoring widget

- Moved to com.android.email.widget
- Extracted nested classes to top-level classes
- Some small clean-ups.
- WidgetProvider and WidgetProvider$WidgetService are left in the original
package to keep compatibility with honeycomb (3.0) release.

This CL is supposed to be pure-refactoring. There should be no
functionality changes.

Change-Id: I37acaa24b6b488724750c0f33374b31fcc433f11
/packages/apps/Email/src/com/android/email/widget/EmailWidget.java