diff options
Diffstat (limited to 'same-android/src/main')
-rw-r--r-- | same-android/src/main/java/com/orbekk/same/SameControllerActivity.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java b/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java index c9829a7..59ec6e2 100644 --- a/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java +++ b/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java @@ -64,9 +64,10 @@ public class SameControllerActivity extends Activity { new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { - Toast.makeText(SameControllerActivity.this, - "Join network " + networkNames.get(position), - Toast.LENGTH_SHORT).show(); + String networkName = networkNames.get(position); + int networkIndex = networkNames.indexOf(networkName); + String masterUrl = networkUrls.get(networkIndex); + joinNetwork(masterUrl); } }; |