Revision 66ea047a

b/src/com/rackspace/cloud/android/ContainerObjectsActivity.java
327 327
	protected void onListItemClick(ListView l, View v, int position, long id) {
328 328
		if (app.getCurFiles() != null && app.getCurFiles().size() > 0) {
329 329
			Intent viewIntent;
330
			if(app.getCurFiles().get(position).getContentType().equals("application/directory")){			
330
			if(app.getCurFiles().get(position).getContentType().startsWith("application/directory")){			
331 331
				currentPath = app.getCurFiles().get(position).getCName() + "/";
332 332
				loadCurrentDirectoryFiles();
333 333
				displayCurrentFiles();
......
525 525
			label.setText(getShortName(file.getCName()));
526 526

  
527 527
			ImageView objectImage = (ImageView) row.findViewById(R.id.file_type_image);
528
			if(file.getContentType().equals("application/directory")){
528
			if(file.getContentType().startsWith("application/directory")){
529 529
				objectImage.setImageResource(R.drawable.folder);
530 530
			} else {
531 531
				objectImage.setImageResource(R.drawable.file);

Also available in: Unified diff