Browse Source

formatting change in browseractivity

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

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

@ -780,9 +780,8 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
return true; return true;
case R.id.action_add_bookmark: case R.id.action_add_bookmark:
if (mCurrentView != null && !mCurrentView.getUrl().startsWith(Constants.FILE)) { if (mCurrentView != null && !mCurrentView.getUrl().startsWith(Constants.FILE)) {
eventBus eventBus.post(new BrowserEvents.AddBookmark(mCurrentView.getTitle(),
.post(new BrowserEvents.AddBookmark(mCurrentView.getTitle(), mCurrentView.getUrl()));
mCurrentView.getUrl()));
} }
return true; return true;
case R.id.action_find: case R.id.action_find:
@ -1505,8 +1504,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
if (url == null || mSearch == null || mSearch.hasFocus()) { if (url == null || mSearch == null || mSearch.hasFocus()) {
return; return;
} }
eventBus eventBus.post(new BrowserEvents.CurrentPageUrl(url));
.post(new BrowserEvents.CurrentPageUrl(url));
if (shortUrl && !url.startsWith(Constants.FILE)) { if (shortUrl && !url.startsWith(Constants.FILE)) {
switch (mPreferences.getUrlBoxContentChoice()) { switch (mPreferences.getUrlBoxContentChoice()) {
case 0: // Default, show only the domain case 0: // Default, show only the domain
@ -2412,9 +2410,8 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
*/ */
@Subscribe @Subscribe
public void bookmarkCurrentPage(final BookmarkEvents.WantToBookmarkCurrentPage event) { public void bookmarkCurrentPage(final BookmarkEvents.WantToBookmarkCurrentPage event) {
eventBus eventBus.post(new BrowserEvents
.post(new BrowserEvents .AddBookmark(mCurrentView.getTitle(), mCurrentView.getUrl()));
.AddBookmark(mCurrentView.getTitle(), mCurrentView.getUrl()));
} }
/** /**

Loading…
Cancel
Save