mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 808510 - Initialize AllPagesHandler in constructor. r=lucasr
This commit is contained in:
parent
58a41204c1
commit
795997cab9
@ -95,6 +95,8 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
|
||||
|
||||
registerEventListener("SearchEngines:Data");
|
||||
GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("SearchEngines:Get", null));
|
||||
|
||||
mHandler = new AllPagesHandler();
|
||||
}
|
||||
|
||||
public boolean onBackPressed() {
|
||||
@ -133,8 +135,6 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
|
||||
AwesomeBarCursorAdapter adapter = getCursorAdapter();
|
||||
list.setAdapter(adapter);
|
||||
list.setOnTouchListener(mListListener);
|
||||
|
||||
mHandler = new AllPagesHandler();
|
||||
}
|
||||
|
||||
return mView;
|
||||
@ -151,11 +151,9 @@ 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;
|
||||
}
|
||||
mHandler.removeMessages(MESSAGE_UPDATE_FAVICONS);
|
||||
mHandler.removeMessages(MESSAGE_LOAD_FAVICONS);
|
||||
mHandler = null;
|
||||
}
|
||||
|
||||
public void filter(String searchTerm) {
|
||||
|
Loading…
Reference in New Issue
Block a user