Make sure to exit CAB when MessageListView .

Change-Id: Ie6c5ec26ceff700ee00c6fbb3af4cbe23c498db4
This commit is contained in:
Makoto Onuki 2011-04-21 12:13:51 -07:00
parent f11295f335
commit fe001abe79

View File

@ -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();
}