Change default port to 5055
Этот коммит содержится в:
@@ -45,9 +45,12 @@ public class TrackingController implements PositionProvider.PositionListener {
|
||||
|
||||
@Override
|
||||
public void onPositionUpdate(Position position) {
|
||||
if (position != null) {
|
||||
StatusActivity.addMessage(context.getString(R.string.status_location_update));
|
||||
|
||||
String request = ProtocolFormatter.formatRequest(
|
||||
preferences.getString(MainActivity.KEY_ADDRESS, null),
|
||||
Integer.parseInt(preferences.getString(MainActivity.KEY_INTERVAL, null)),
|
||||
Integer.parseInt(preferences.getString(MainActivity.KEY_PORT, null)),
|
||||
position.getId(), position.location, position.getBattery());
|
||||
|
||||
RequestManager.sendRequest(request, new RequestManager.RequestHandler() {
|
||||
@@ -61,5 +64,6 @@ public class TrackingController implements PositionProvider.PositionListener {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
android:title="@string/settings_address_title" />
|
||||
|
||||
<EditTextPreference
|
||||
android:defaultValue="5005"
|
||||
android:defaultValue="5055"
|
||||
android:key="port"
|
||||
android:numeric="integer"
|
||||
android:summary="@string/settings_port_summary"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
android:title="@string/settings_address_title" />
|
||||
|
||||
<EditTextPreference
|
||||
android:defaultValue="5005"
|
||||
android:defaultValue="5055"
|
||||
android:key="port"
|
||||
android:numeric="integer"
|
||||
android:summary="@string/settings_port_summary"
|
||||
|
||||
Ссылка в новой задаче
Block a user