public BulletinFragmentAdapter(FragmentManager fm, Activity activity, String bulletinid) { super(fm); this.activity = activity; forecasts = Global.istance().getForecastByBulletinID(bulletinid); if (null == forecasts) forecasts = reload(activity, bulletinid); mCount = forecasts.size(); }
private List<Forecast> reload(Context context, String bulletinid) { Util.reloadAll(context); return Global.istance().getForecastByBulletinID(bulletinid); }