am 879627a5: Merge "Make sure we properly clean leave behinds after undo is tapped." into jb-ub-mail-ur8
* commit '879627a51cd2913b8ea0d68ca199a2fdc4ca4453':
Make sure we properly clean leave behinds after undo is tapped.
diff --git a/src/com/android/mail/ui/LeaveBehindItem.java b/src/com/android/mail/ui/LeaveBehindItem.java
index f828060..ef04fbe 100644
--- a/src/com/android/mail/ui/LeaveBehindItem.java
+++ b/src/com/android/mail/ui/LeaveBehindItem.java
@@ -78,6 +78,7 @@
// TODO: Use UIProvider.SEQUENCE_QUERY_PARAMETER to indicate
// the set of commands to undo
mAdapter.setSwipeUndo(true);
+ mAdapter.clearLeaveBehind(getConversationId());
ConversationCursor cursor = mAdapter.getConversationCursor();
if (cursor != null) {
cursor.undo(getContext(), mAccount.undoUri);