Run UI operations on correct thread

This commit is contained in:
Anthony Restaino 2016-01-10 19:31:36 -05:00
parent 057b4296d7
commit e06d530528

View File

@ -1410,9 +1410,15 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
@Override @Override
public void run() { public void run() {
loadUrlInCurrentView(HistoryPage.getHistoryPage(BrowserActivity.this)); final String historyPage = HistoryPage.getHistoryPage(BrowserActivity.this);
BrowserActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
loadUrlInCurrentView(historyPage);
mSearch.setText(""); mSearch.setText("");
} }
});
}
}); });
} }