Browse Source

Add missing changes for history page changes

master
Anthony Restaino 9 years ago
parent
commit
076b74e867
  1. 3
      app/src/main/java/acr/browser/lightning/bus/BrowserEvents.java
  2. 2
      app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java

3
app/src/main/java/acr/browser/lightning/bus/BrowserEvents.java

@ -68,6 +68,9 @@ public final class BrowserEvents {
} }
} }
public final static class OpenHistoryInCurrentTab {
}
/** /**
* The user want to open the given url in the current tab * The user want to open the given url in the current tab
*/ */

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

@ -222,7 +222,7 @@ public class LightningDialogBuilder {
case DialogInterface.BUTTON_NEGATIVE: case DialogInterface.BUTTON_NEGATIVE:
mHistoryDatabase.deleteHistoryItem(url); mHistoryDatabase.deleteHistoryItem(url);
// openHistory(); // openHistory();
eventBus.post(new BrowserEvents.OpenUrlInCurrentTab(HistoryPage.getHistoryPage(context))); eventBus.post(new BrowserEvents.OpenHistoryInCurrentTab());
break; break;
case DialogInterface.BUTTON_NEUTRAL: case DialogInterface.BUTTON_NEUTRAL:
eventBus.post(new BrowserEvents.OpenUrlInCurrentTab(url)); eventBus.post(new BrowserEvents.OpenUrlInCurrentTab(url));

Loading…
Cancel
Save