mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
Refactor WebServerHelper
This commit is contained in:
parent
13c815492a
commit
1fe406bf68
@ -1,9 +1,6 @@
|
|||||||
package org.kiwix.kiwixmobile.webserver;
|
package org.kiwix.kiwixmobile.webserver;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.widget.EditText;
|
|
||||||
import android.widget.TextView;
|
|
||||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.NetworkInterface;
|
import java.net.NetworkInterface;
|
||||||
import java.net.SocketException;
|
import java.net.SocketException;
|
||||||
@ -17,11 +14,8 @@ import java.util.Enumeration;
|
|||||||
|
|
||||||
public class WebServerHelper {
|
public class WebServerHelper {
|
||||||
Context context;
|
Context context;
|
||||||
private TextView textViewIpAccess;
|
|
||||||
private EditText editTextPort;
|
|
||||||
public static boolean isStarted;
|
public static boolean isStarted;
|
||||||
static int port;
|
static int port;
|
||||||
private CoordinatorLayout coordinatorLayout;
|
|
||||||
|
|
||||||
public WebServerHelper(Context context) {
|
public WebServerHelper(Context context) {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user