From 3643a924996b760c8dc31e88afcd80ca69af8cdd Mon Sep 17 00:00:00 2001 From: Anthony Restaino Date: Sat, 27 Aug 2016 15:35:01 -0400 Subject: [PATCH] Fixed crash in history --- .../browser/lightning/dialog/LightningDialogBuilder.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java b/app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java index 6e2e255..659ebe2 100644 --- a/app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java +++ b/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.EditText; +import com.anthonycr.bonsai.Schedulers; import com.squareup.otto.Bus; import java.util.List; @@ -193,7 +194,12 @@ public class LightningDialogBuilder { public void run() { mHistoryDatabase.deleteHistoryItem(url); // openHistory(); - mEventBus.post(new BrowserEvents.OpenHistoryInCurrentTab()); + Schedulers.main().execute(new Runnable() { + @Override + public void run() { + mEventBus.post(new BrowserEvents.OpenHistoryInCurrentTab()); + } + }); } }); }