Revision 877f6f58 src/com/rackspacecloud/android/ListContainerActivity.java
b/src/com/rackspacecloud/android/ListContainerActivity.java | ||
---|---|---|
59 | 59 |
} |
60 | 60 |
|
61 | 61 |
private void restoreState(Bundle state) { |
62 |
if (state != null && state.containsKey("container") && state.getSerializable("container") != null) { |
|
62 |
if(state != null && state.containsKey("loading") && state.getBoolean("loading")){ |
|
63 |
loadContainers(); |
|
64 |
registerForContextMenu(getListView()); |
|
65 |
} |
|
66 |
else if (state != null && state.containsKey("container") && state.getSerializable("container") != null) { |
|
63 | 67 |
containers = (Container[]) state.getSerializable("container"); |
64 | 68 |
if (containers.length == 0) { |
65 | 69 |
displayNoServersCell(); |
Also available in: Unified diff