Revision ef6fa21a src/com/rackspace/cloud/android/ContainerObjectsActivity.java
b/src/com/rackspace/cloud/android/ContainerObjectsActivity.java | ||
---|---|---|
12 | 12 |
import android.content.Intent; |
13 | 13 |
import android.os.AsyncTask; |
14 | 14 |
import android.os.Bundle; |
15 |
import android.util.Log; |
|
15 | 16 |
import android.view.LayoutInflater; |
16 | 17 |
import android.view.Menu; |
17 | 18 |
import android.view.MenuInflater; |
... | ... | |
222 | 223 |
*/ |
223 | 224 |
private Boolean fileBelongsInDir(ContainerObjects obj){ |
224 | 225 |
String objPath = obj.getCName(); |
226 |
Log.i("INFO",currentPath); |
|
225 | 227 |
if(!objPath.startsWith(currentPath)){ |
226 | 228 |
return false; |
227 | 229 |
} |
... | ... | |
248 | 250 |
if (files != null) { |
249 | 251 |
for (int i = 0; i < files.size(); i++) { |
250 | 252 |
ContainerObjects file = files.get(i); |
253 |
Log.i(file.getCName(),file.getCName()); |
|
251 | 254 |
this.files[i] = file; |
252 | 255 |
fileNames[i] = file.getName(); |
253 | 256 |
} |
... | ... | |
562 | 565 |
protected ArrayList<ContainerObjects> doInBackground(String... path) { |
563 | 566 |
ArrayList<ContainerObjects> files = null; |
564 | 567 |
try { |
565 |
files = (new ContainerObjectManager(getContext())).createList(true, |
|
568 |
if(container.getName().equals(Container.MYSHARED)){ |
|
569 |
files = (new ContainerObjectManager(getContext())).createListMyShared(true, |
|
570 |
container.getName(),new ContainerManager(getContext()).createList(true)); |
|
571 |
} |
|
572 |
else if(container.getName().equals(Container.OTHERS)){ |
|
573 |
|
|
574 |
} |
|
575 |
else |
|
576 |
files = (new ContainerObjectManager(getContext())).createList(true, |
|
566 | 577 |
container.getName()); |
567 | 578 |
} catch (CloudServersException e) { |
568 | 579 |
exception = e; |
Also available in: Unified diff