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

Loading…
Cancel
Save