Revision db9092dd src/com/rackspace/cloud/android/ListContainerActivity.java
b/src/com/rackspace/cloud/android/ListContainerActivity.java | ||
---|---|---|
16 | 16 |
import android.view.View; |
17 | 17 |
import android.view.ViewGroup; |
18 | 18 |
import android.widget.ArrayAdapter; |
19 |
import android.widget.ImageView; |
|
19 | 20 |
import android.widget.ListView; |
20 | 21 |
import android.widget.TextView; |
21 | 22 |
|
... | ... | |
307 | 308 |
TextView label = (TextView) row.findViewById(R.id.label); |
308 | 309 |
if(container.getOtherUser()!=null) |
309 | 310 |
label.setText(container.getOtherUser()+"/"+container.getName()); |
310 |
else |
|
311 |
else{
|
|
311 | 312 |
label.setText(container.getName()); |
313 |
ImageView img = (ImageView)row.findViewById(R.id.file_type_image); |
|
314 |
if(container.getName().equalsIgnoreCase("pithos")) |
|
315 |
img.setImageResource(R.drawable.pithoscontainer); |
|
316 |
if(container.getName().equalsIgnoreCase("trash")) |
|
317 |
img.setImageResource(R.drawable.trashicon); |
|
318 |
|
|
319 |
} |
|
320 |
|
|
312 | 321 |
|
313 | 322 |
if (container.getBytes() >= bConver) { |
314 | 323 |
megaBytes = Math.abs(container.getBytes() / bConver + 0.2); |
Also available in: Unified diff