Revision 344675da src/com/rackspacecloud/android/ListServersActivity.java
b/src/com/rackspacecloud/android/ListServersActivity.java | ||
---|---|---|
9 | 9 |
import com.rackspace.cloud.servers.api.client.ServerManager; |
10 | 10 |
|
11 | 11 |
import android.app.ListActivity; |
12 |
import android.content.Intent; |
|
12 | 13 |
import android.os.AsyncTask; |
13 | 14 |
import android.os.Bundle; |
14 | 15 |
import android.view.LayoutInflater; |
... | ... | |
113 | 114 |
@Override |
114 | 115 |
public boolean onOptionsItemSelected(MenuItem item) { |
115 | 116 |
switch (item.getItemId()) { |
116 |
case R.id.settings:
|
|
117 |
//startActivity(new Intent(this, SettingsActivity.class));
|
|
117 |
case R.id.add_server:
|
|
118 |
startActivity(new Intent(this, AddServerActivity.class));
|
|
118 | 119 |
return true; |
119 |
// More items go here (if any) ... |
|
120 | 120 |
case R.id.refresh: |
121 | 121 |
loadServers(); |
122 |
/* |
|
123 |
Slicehost.setSlices(null); |
|
124 |
initThreading(); |
|
125 |
guiThread.post(updateTask); |
|
126 |
displayLoadingCell(); |
|
127 |
*/ |
|
128 | 122 |
return true; |
129 |
/* |
|
130 |
case R.id.dns_menu_add_zone: |
|
131 |
startActivity(new Intent(this, AddZoneActivity.class)); |
|
132 |
return true; |
|
133 |
// More items go here (if any) ... |
|
134 |
* */ |
|
135 | 123 |
} |
136 | 124 |
return false; |
137 | 125 |
} |
Also available in: Unified diff