summaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java7
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java2
2 files changed, 3 insertions, 6 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java b/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java
index 5503408f935f..6c24ad7b73ae 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java
@@ -220,8 +220,6 @@ public class SelectorActivity extends SherlockActivity {
// Bluetooth -- Remove old
for (Entry<Server, View> aEntry : mBluetoothServers.entrySet()) {
if (!Arrays.asList(aServers).contains(aEntry.getKey())) {
- System.out.println("Removing view "
- + aEntry.getKey().getName());
mBluetoothServers.remove(aEntry.getKey());
mBluetoothList.removeView((View) aEntry.getValue()
.getParent());
@@ -230,8 +228,7 @@ public class SelectorActivity extends SherlockActivity {
// Network -- Remove old
for (Entry<Server, View> aEntry : mNetworkServers.entrySet()) {
if (!Arrays.asList(aServers).contains(aEntry.getKey())) {
- System.out.println("Removing view");
- mNetworkServers.remove(aEntry.getKey().getName());
+ mNetworkServers.remove(aEntry.getKey());
mNetworkList.removeView((View) aEntry.getValue()
.getParent());
}
@@ -262,8 +259,8 @@ public class SelectorActivity extends SherlockActivity {
}
}
- // Hide as necessary
+ // Hide as necessary
mBluetoothContainer
.setVisibility((mBluetoothServers.size() != 0) ? View.VISIBLE
: View.GONE);
diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java
index 406383c3d71d..d9022ecb0738 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java
@@ -24,7 +24,7 @@ public class ServerFinder {
private static final String CHARSET = "UTF-8";
- private static final long SEARCH_INTERVAL = 1000 * 20;
+ private static final long SEARCH_INTERVAL = 1000 * 15;
private DatagramSocket mSocket = null;