Skip to content

Commit ff42807

Browse files
committed
Removed logging to fix tests and improved sample app layout
1 parent b595e3c commit ff42807

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

app/src/main/res/layout/content_main.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@
5454

5555
<Button
5656
android:id="@+id/wolButton"
57-
android:layout_width="0dp"
57+
android:layout_width="wrap_content"
5858
android:layout_height="wrap_content"
59-
android:layout_weight="1"
6059
android:text="@string/wol"
6160
/>
6261
<Button

library/src/main/java/com/stealthcopter/networktools/PortScan.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,16 @@ public static PortScan onAddress(@NonNull InetAddress ia) {
7272
if (IPTools.isIpAddressLocalhost(ia)){
7373
// If we are scanning a the localhost set the timeout to be very short so we get faster results
7474
// This will be overridden if user calls setTimeoutMillis manually.
75-
Log.e("TESTING", "FOUND LOCALHOST");
7675
portScan.timeOutMillis = TIMEOUT_LOCALHOST;
7776
portScan.noThreads = DEFAULT_THREADS_LOCALHOST;
7877
}
7978
else if (IPTools.isIpAddressLocalNetwork(ia)){
8079
// Assume local network (not infallible)
81-
Log.e("TESTING", "FOUND LOCALNETWORK");
8280
portScan.timeOutMillis = TIMEOUT_LOCALNETWORK;
8381
portScan.noThreads = DEFAULT_THREADS_LOCALNETWORK;
8482
}
8583
else{
8684
// Assume remote network timeouts
87-
Log.e("TESTING", "FOUND REMOTE");
8885
portScan.timeOutMillis = TIMEOUT_REMOTE;
8986
portScan.noThreads = DEFAULT_THREADS_REMOTE;
9087
}

scripts/.decrypt-secrets.sh.kate-swp

-550 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)