コード例 #1
0
  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();
  }
コード例 #2
0
  private List<Forecast> reload(Context context, String bulletinid) {
    Util.reloadAll(context);

    return Global.istance().getForecastByBulletinID(bulletinid);
  }