History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f8ccdcfc26f362d9c20771e2295a0c0e8d1195f3 09-Aug-2013 Andrew Sapperstein <asapperstein@google.com> Refactor ActionableToastBar and ToastBarOperation.

Now supports ToastBarOperation performing actions
when the action button is clicked or the toast bar
disappears.

Change-Id: If191e3cbbf404d2371e086e105627c9474167e8a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
6c570db71b8adc43d7dc2f31e6fa63cf50c1426e 07-Aug-2013 Andrew Sapperstein <asapperstein@google.com> Add new ViewMode.

Works in OnePaneController.
Need to wire up the buttons.

Change-Id: Ia9aa5e696cbba1d170038e47d4941cc6fcf0a967
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
2b9d80eb16156173f11a02eae4f770d8c975927c 31-Jul-2013 Scott Kennedy <skennedy@google.com> Change all resid switches to if-elseif-else

I really want to get this building in an IDE.

As per http://tools.android.com/tips/non-constant-fields, library
projects (like UnifiedEmail will be) have non-final R constants. They
are not final until packaged into the main application project's
(Gmail/Email)'s R.java.

As such, they cannot be used in switch case statements, and we must
use if-elseif-elseif-elseif-...-else instead.

"This is typically in UI code and the performance impact is
negligible."

Change-Id: Ie699c13e1becd51c59c1b2ea81bc902d4f2e28d9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
c1922a93fb9540d4ff8c28a30d1ae58d3a3d73f9 13-May-2013 Andy Huang <ath@google.com> Fix undo when auto-advance is not set to 'list'

Auto-advance broke undo because undo did a sequence number check before
doing anything, and a side effect of auto-advance is to mark the next
conversation read!

Added more toString() logging to assist improve 'dumpsys activity'
output.

Bug: 8877688
Change-Id: I54597c4511780651a3a043a7752191cbad6fa1b9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
6a3d5ce0b18f58fcfa1af0315dc8ddc7331c2c5f 16-Mar-2013 Scott Kennedy <skennedy@google.com> Change the undo message for a "Move to" action

Previously, the undo bar toast could only show the currently
displayed folder, but we want to be able to say something like
"Moved to Social". So now, we can pass in any folder that we
consider the recipient of the action, and this is the folder name
that gets displayed in the toast.

Change-Id: I0b17462be86657f7d0c9a3504d15091a157a2292
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
2bc8bc1f69faacaddab41ab61e1d2e8658f4181f 13-Nov-2012 Andy Huang <ath@google.com> fix restoring nested Parcelables

Any Parcelable that contains other parcelables should have a
CREATOR that extends ClassLoaderCreator so it can pass along the
classloader when reading the inner Parcelable.

This is how Fragment.SavedState works. Hooray for not
fabricating classloaders!

Bug: 7517657
Change-Id: Iae9c3cfa291a956659eabb501b9c57fa3c2707c9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
a59283a9856b9356b058575e89dfe3f17fffa529 12-Sep-2012 mindyp <mindyp@google.com> Add a flag to determine if undo is for a batch operation or not

was using count > 1 which is wrong since the user could have checked
a single conversation

The interface SwipeCompleteListner is unused

Fixes b/7149017 Tablet landscape Undo bar not always shown in correct place in cab mode

Change-Id: I213d71d9c4db44723693f76dc7e2a012eba8edc0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
445be2114aed6b28cab53b488735d4bb812353a5 15-Aug-2012 Mindy Pereira <mindyp@google.com> Mark not important from priority inbox is destructive;reflect immediately

Fixes b/6944223 Mark not important not destructive

roll back commit destructive actions on cab mode empty; this
is not the correct way to do it and we lost undo aniamtions
Change-Id: Ia30598c07bfdeb0c3eadb5d7276ac71bbf81a77f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
01f30509c4c8ad0d13b7635447b7f023c7a0cab7 14-Aug-2012 Mindy Pereira <mindyp@google.com> Show remove folder option in user created labels.

Fixes b/6977686 User created labels don't have Remove label (archive) icon

Change-Id: Icecada98ac11e66f622fbac80991a481873eed18
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
bcd784c09f649785a3dda1d6d9a6d5f58ba41770 10-Aug-2012 Mindy Pereira <mindyp@google.com> Explicitly call out the name of the folder/label being removed.

Fixes b/On swipe change copy for Remove from label to Remove from [labelname]

Also, that's not a not =P if it is animating, skip, otherwise, refresh
Change-Id: I450033cac8adf2b95e9ed101e1a4651f708e5ac0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
7747d15a9ca0be42e1c69b3b6c442c08ba37171f 29-Jul-2012 Mindy Pereira <mindyp@google.com> Add creator to toastbarop

Fixes b/6895300 Crash when opening Gmail

Change-Id: I02cecd35abd23068469a52af45f14f00ea6d65e7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
350acdc75af67425aa3f8b6e4f889d4828ce8705 26-Jul-2012 Mindy Pereira <mindyp@google.com> Fix the text in the leavebehind; change undo animation.

We don't care about the count.
Conversations should slide in from the right as a result of undo.
Change-Id: I10d24f758a7260ff5cbb743c2d9c50445a989e6c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
b40cf463e471505a979b1640267b611ce44ddb67 25-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Show "report not spam" text in undo bar.

While fixing the report phishing bug, I
noticed that we had the same problem if marking
as not spam from inside spam. Just added this code now.

Change-Id: I6016eba864d5a3c8fff1520a610894687eaed1be
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
ca125ae7e0b12eecc866c27682a25be142b37a42 25-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Show reported as phishing text in undo bar.

Fixes bug 6879859.

Change-Id: I9d559d9c66f444dfc9bd7203840fb06bb815744d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java
d3367499e56116854ed637b1036fd71057ac0f49 26-Jun-2012 Mindy Pereira <mindyp@google.com> Make it possible to restore undo operations.

Conflicts:

src/com/android/mail/ui/AbstractActivityController.java
src/com/android/mail/ui/SwipeableListView.java
src/com/android/mail/ui/UndoBarView.java

Change-Id: I42441c60e9ab7aff8f4c07dd21d03d2e419b2d0b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ToastBarOperation.java