diff options
author | Artur Dryomov <artur.dryomov@gmail.com> | 2013-09-13 19:22:08 +0300 |
---|---|---|
committer | Artur Dryomov <artur.dryomov@gmail.com> | 2013-09-14 01:25:32 +0300 |
commit | 06806b93f1474962f6780e108ae1e6654ab1da0d (patch) | |
tree | 2147982077e072544c807a93dc272cce9569fa89 | |
parent | 8fe5b478267fc5d72ccdf6b6e1563be1cacc7ac3 (diff) |
Change searching message delay from 10 seconds to 3.
Make it more friendly for users.
Change-Id: Ie77643639d4b8a15c6e5a82070f8e01c8fa5025e
-rw-r--r-- | android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java | 1 | ||||
-rw-r--r-- | android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java index 84f305be9809..a35c1d6d97ba 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/TcpServersFinder.java @@ -95,6 +95,7 @@ class TcpServersFinder implements ServersFinder, Runnable { DatagramPacket aSearchPacket = new DatagramPacket( aSearchCommand.getBytes(), aSearchCommand.length()); + aSearchPacket.setAddress( InetAddress.getByName(Protocol.Addresses.SERVER_SEARCH)); aSearchPacket.setPort(Protocol.Ports.SERVER_SEARCH); diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java index 3ea19ce37124..7cd6033f30bd 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java +++ b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java @@ -46,7 +46,7 @@ import org.libreoffice.impressremote.communication.Server; import org.libreoffice.impressremote.util.SavedStates; public class ComputersFragment extends SherlockListFragment implements ServiceConnection, Runnable { - private static final int SHOWING_PROGRESS_MESSAGE_DELAY_IN_SECONDS = 10; + private static final int SHOWING_PROGRESS_MESSAGE_DELAY_IN_SECONDS = 3; public static enum Type { WIFI, BLUETOOTH |