Bug 811654 - Make AllPagesTab's destroy() idempotent (r=mfinkle)

This commit is contained in:
Lucas Rocha 2012-11-14 16:23:26 +00:00
parent bf9d34069e
commit 419069500f

View File

@ -151,10 +151,12 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
if (cursor != null)
cursor.close();
if (mHandler != null) {
mHandler.removeMessages(MESSAGE_UPDATE_FAVICONS);
mHandler.removeMessages(MESSAGE_LOAD_FAVICONS);
mHandler = null;
}
}
public void filter(String searchTerm) {
AwesomeBarCursorAdapter adapter = getCursorAdapter();