Browse Source

Run UI operations on correct thread

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

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

@ -1410,9 +1410,15 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements @@ -1410,9 +1410,15 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
@Override
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("");
}
});
}
});
}

Loading…
Cancel
Save