Revision 6c0d81f1 src/com/rackspacecloud/android/ListAccountsActivity.java

b/src/com/rackspacecloud/android/ListAccountsActivity.java
468 468
				hideDialog();
469 469
				startActivityForResult(tabViewIntent, 187);
470 470
			} else {
471
				/*
471 472
				hideDialog();
472 473
				showAlert("Login Failure", "There was a problem loading server flavors.  Please try again.");
474
				*/
475
				TreeMap<String, Flavor> flavorMap = new TreeMap<String, Flavor>();
476
				
477
				Flavor.setFlavors(flavorMap);
478
				hideDialog();
479
				startActivityForResult(tabViewIntent, 187);
473 480
			}
474 481
		}
475 482
	}
......
483 490

  
484 491
		@Override
485 492
		protected void onPostExecute(ArrayList<Image> result) {
493
			Log.i("IMG SIZE", result+" "+result.size());
486 494
			if (result != null && result.size() > 0) {
487 495
				TreeMap<String, Image> imageMap = new TreeMap<String, Image>();
488 496
				for (int i = 0; i < result.size(); i++) {
......
493 501
				new LoadFlavorsTask().execute((Void[]) null);
494 502
				//startActivity(tabViewIntent);
495 503
			} else {
496
				hideDialog();
497
				showAlert("Login Failure", "There was a problem loading server images.  Please try again.");
504
				TreeMap<String, Image> imageMap = new TreeMap<String, Image>();
505
								
506
				Image.setImages(imageMap);
507
				new LoadFlavorsTask().execute((Void[]) null);
508
				//hideDialog();
509
				//showAlert("Login Failure", "There was a problem loading server images.  Please try again.");
498 510
			}
499 511
		}
500 512
	}

Also available in: Unified diff