Browse Source

Fixed crash in history

master
Anthony Restaino 8 years ago
parent
commit
3643a92499
  1. 6
      app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java

6
app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java

@ -14,6 +14,7 @@ import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView; import android.widget.AutoCompleteTextView;
import android.widget.EditText; import android.widget.EditText;
import com.anthonycr.bonsai.Schedulers;
import com.squareup.otto.Bus; import com.squareup.otto.Bus;
import java.util.List; import java.util.List;
@ -193,10 +194,15 @@ public class LightningDialogBuilder {
public void run() { public void run() {
mHistoryDatabase.deleteHistoryItem(url); mHistoryDatabase.deleteHistoryItem(url);
// openHistory(); // openHistory();
Schedulers.main().execute(new Runnable() {
@Override
public void run() {
mEventBus.post(new BrowserEvents.OpenHistoryInCurrentTab()); mEventBus.post(new BrowserEvents.OpenHistoryInCurrentTab());
} }
}); });
} }
});
}
}, },
new BrowserDialog.Item(R.string.action_open) { new BrowserDialog.Item(R.string.action_open) {
@Override @Override

Loading…
Cancel
Save