@SuppressWarnings("unused") @Subscribe public void onStateChangedEvent(MainApplication.StateChangedEvent event) { closeAllBubbles(false); final Vector<String> urls = Settings.get().loadCurrentTabs(); if (urls.size() > 0) { for (String url : urls) { MainApplication.openLink(mContext, url, null); } } }
public boolean reloadAllTabs(Context context) { CrashTracking.log("MainController.reloadAllTabs()"); boolean reloaded = false; closeAllBubbles(false); final Vector<String> urls = Settings.get().loadCurrentTabs(); if (urls.size() > 0) { for (String url : urls) { MainApplication.openLink(context.getApplicationContext(), url, null); reloaded = true; } } return reloaded; }