mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 20:24:03 -04:00
Rename getCompleteAddress() to getSocketAddress()
This commit is contained in:
parent
857ad22e73
commit
ce0f5ed06c
@ -106,7 +106,7 @@ public class WebServerHelper {
|
|||||||
return ip;
|
return ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull public static String getCompleteAddress() {
|
@NonNull public static String getSocketAddress() {
|
||||||
String address = "http://" + getIpAddress() + ":" + port;
|
String address = "http://" + getIpAddress() + ":" + port;
|
||||||
address = address.replaceAll("\n", "");
|
address = address.replaceAll("\n", "");
|
||||||
return address;
|
return address;
|
||||||
|
@ -58,7 +58,7 @@ import org.kiwix.kiwixmobile.zim_manager.fileselect_view.adapter.BooksOnDiskAdap
|
|||||||
import org.kiwix.kiwixmobile.zim_manager.fileselect_view.adapter.BooksOnDiskListItem;
|
import org.kiwix.kiwixmobile.zim_manager.fileselect_view.adapter.BooksOnDiskListItem;
|
||||||
|
|
||||||
import static org.kiwix.kiwixmobile.utils.StyleUtils.dialogStyle;
|
import static org.kiwix.kiwixmobile.utils.StyleUtils.dialogStyle;
|
||||||
import static org.kiwix.kiwixmobile.webserver.WebServerHelper.getCompleteAddress;
|
import static org.kiwix.kiwixmobile.webserver.WebServerHelper.getSocketAddress;
|
||||||
import static org.kiwix.kiwixmobile.webserver.WebServerHelper.isServerStarted;
|
import static org.kiwix.kiwixmobile.webserver.WebServerHelper.isServerStarted;
|
||||||
|
|
||||||
public class ZimHostActivity extends BaseActivity implements
|
public class ZimHostActivity extends BaseActivity implements
|
||||||
@ -238,7 +238,7 @@ public class ZimHostActivity extends BaseActivity implements
|
|||||||
super.onResume();
|
super.onResume();
|
||||||
presenter.loadBooks();
|
presenter.loadBooks();
|
||||||
if (isServerStarted) {
|
if (isServerStarted) {
|
||||||
ip = getCompleteAddress();
|
ip = getSocketAddress();
|
||||||
layoutServerStarted();
|
layoutServerStarted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user