Subversion Repositories ES

Rev

Rev 17 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17 Rev 18
Line 27... Line 27...
27
    "de.pointedears.converter.extra_activity"; //$NON-NLS-1$
27
    "de.pointedears.converter.extra_activity"; //$NON-NLS-1$
28
  public static final String EXTRA_NUM_RATES =
28
  public static final String EXTRA_NUM_RATES =
29
    "de.pointedears.converter.extra_num_rates"; //$NON-NLS-1$
29
    "de.pointedears.converter.extra_num_rates"; //$NON-NLS-1$
30
  public static final String EXTRA_DATE = "de.pointedears.converter.extra_date"; //$NON-NLS-1$
30
  public static final String EXTRA_DATE = "de.pointedears.converter.extra_date"; //$NON-NLS-1$
31
31
-
 
32
  /* NOTE: Don't remove; may be used later for automated updates */
32
  // private sendTimerTask sendTime = null;
33
  // private sendTimerTask sendTime = null;
33
34
34
  // /** inner class implements the broadcast timer */
35
  // /** inner class implements the broadcast timer */
35
  // private class BroadcastTimerTask extends TimerTask
36
  // private class BroadcastTimerTask extends TimerTask
36
  // {
37
  // {
Line 98... Line 99...
98
    if (UpdateService.ACTION_UPDATE.equals(action))
99
    if (UpdateService.ACTION_UPDATE.equals(action))
99
    {
100
    {
100
      if (this.updateThread == null)
101
      if (this.updateThread == null)
101
      {
102
      {
102
        this.ratesUpdater =
103
        this.ratesUpdater =
103
          new RatesUpdater(UpdateService.getActivityContext(), this);
104
          new RatesUpdater(UpdateService.activityContext, this);
104
        this.updateThread =
105
        this.updateThread =
105
          new ConverterThread(this.ratesUpdater, this.handler);
106
          new ConverterThread(this.ratesUpdater, this.handler);
106
        this.ratesUpdater.setUpdateThread(this.updateThread);
107
        this.ratesUpdater.setUpdateThread(this.updateThread);
107
      }
108
      }
108
109
Line 137... Line 138...
137
      // return true;
138
      // return true;
138
    }
139
    }
139
  }
140
  }
140
141
141
  /**
142
  /**
142
   * @return the activityContext
-
 
143
   */
-
 
144
  public static CurrenciesActivity getActivityContext()
-
 
145
  {
-
 
146
    return UpdateService.activityContext;
-
 
147
  }
-
 
148
-
 
149
  /**
-
 
150
   * @param activityContext
143
   * @param activityContext
151
   *          the activityContext to set
144
   *          the activityContext to set
152
   */
145
   */
153
  public static void setActivityContext(CurrenciesActivity activityContext)
146
  public static void setActivityContext(CurrenciesActivity activityContext)
154
  {
147
  {