Run UI operations on correct thread
This commit is contained in:
parent
057b4296d7
commit
e06d530528
@ -1410,8 +1410,14 @@ 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);
|
||||||
mSearch.setText("");
|
BrowserActivity.this.runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
loadUrlInCurrentView(historyPage);
|
||||||
|
mSearch.setText("");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user