From fe001abe795390fa78820fac6f84b2be5ed31a70 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 21 Apr 2011 12:13:51 -0700 Subject: [PATCH] Make sure to exit CAB when MessageListView . Change-Id: Ie6c5ec26ceff700ee00c6fbb3af4cbe23c498db4 --- src/com/android/email/activity/MessageListFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/android/email/activity/MessageListFragment.java b/src/com/android/email/activity/MessageListFragment.java index 830e396ab..1ecf7e954 100644 --- a/src/com/android/email/activity/MessageListFragment.java +++ b/src/com/android/email/activity/MessageListFragment.java @@ -344,6 +344,12 @@ public class MessageListFragment extends ListFragment } mTaskTracker.cancellAllInterrupt(); mRefreshManager.unregisterListener(mRefreshListener); + + // Make sure to exit CAB + // TODO: This is a questionable place to do this for the phone UI. We want to hide the CAB + // when the fragment is put in the back stack as well, in which case onDestroy() won't be + // called. Consider doing it in onDestroyView instead. + finishSelectionMode(); super.onDestroy(); }