Revision a597c658 src/com/rackspacecloud/android/RackspaceCloudActivity.java
b/src/com/rackspacecloud/android/RackspaceCloudActivity.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
private Intent tabViewIntent; |
48 | 48 |
private boolean authenticating; |
49 |
private Context context; |
|
49 | 50 |
|
50 | 51 |
/** Called when the activity is first created. */ |
51 | 52 |
@Override |
... | ... | |
55 | 56 |
|
56 | 57 |
final CheckBox show_clear = (CheckBox) findViewById(R.id.show_clear); |
57 | 58 |
final EditText loginApiKey = (EditText) findViewById(R.id.login_apikey); |
58 |
|
|
59 |
|
|
60 |
context = getApplicationContext(); |
|
61 |
|
|
59 | 62 |
show_clear.setOnClickListener(new OnClickListener() { |
60 | 63 |
@Override |
61 | 64 |
public void onClick(View v) { |
... | ... | |
216 | 219 |
@Override |
217 | 220 |
protected Boolean doInBackground(Void... arg0) { |
218 | 221 |
authenticating = true; |
219 |
return new Boolean(Authentication.authenticate()); |
|
222 |
return new Boolean(Authentication.authenticate(context));
|
|
220 | 223 |
} |
221 | 224 |
|
222 | 225 |
@Override |
... | ... | |
235 | 238 |
|
236 | 239 |
@Override |
237 | 240 |
protected ArrayList<Flavor> doInBackground(Void... arg0) { |
238 |
return (new FlavorManager()).createList(true); |
|
241 |
return (new FlavorManager()).createList(true, context);
|
|
239 | 242 |
} |
240 | 243 |
|
241 | 244 |
@Override |
... | ... | |
259 | 262 |
|
260 | 263 |
@Override |
261 | 264 |
protected ArrayList<Image> doInBackground(Void... arg0) { |
262 |
return (new ImageManager()).createList(true); |
|
265 |
return (new ImageManager()).createList(true, context);
|
|
263 | 266 |
} |
264 | 267 |
|
265 | 268 |
@Override |
Also available in: Unified diff