mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-21 03:02:59 -04:00
Rename getCompleteAddress() to getSocketAddress()
This commit is contained in:
parent
857ad22e73
commit
ce0f5ed06c
@ -106,7 +106,7 @@ public class WebServerHelper {
|
||||
return ip;
|
||||
}
|
||||
|
||||
@NonNull public static String getCompleteAddress() {
|
||||
@NonNull public static String getSocketAddress() {
|
||||
String address = "http://" + getIpAddress() + ":" + port;
|
||||
address = address.replaceAll("\n", "");
|
||||
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 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;
|
||||
|
||||
public class ZimHostActivity extends BaseActivity implements
|
||||
@ -238,7 +238,7 @@ public class ZimHostActivity extends BaseActivity implements
|
||||
super.onResume();
|
||||
presenter.loadBooks();
|
||||
if (isServerStarted) {
|
||||
ip = getCompleteAddress();
|
||||
ip = getSocketAddress();
|
||||
layoutServerStarted();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user