Browse Source

Run UI operations on correct thread

master
Anthony Restaino 9 years ago
parent
commit
e06d530528
  1. 10
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

10
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

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

Loading…
Cancel
Save