handle network swap #32

Merged
CiufudeanDani merged 2 commits from SD-230 into develop 2022-05-03 08:27:34 +00:00
Member
No description provided.
CiufudeanDani added 1 commit 2022-05-02 13:20:34 +00:00
CiufudeanDani requested review from cristi 2022-05-02 13:20:51 +00:00
CiufudeanDani requested review from adriana 2022-05-02 13:20:51 +00:00
CiufudeanDani requested review from laurentiu.constantin 2022-05-02 13:20:51 +00:00
cristi requested changes 2022-05-02 15:16:14 +00:00
@ -574,0 +583,4 @@
else {
NetworkRequest request = new NetworkRequest.Builder()
.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET).build();
connectivityManager.registerNetworkCallback(request, networkCallback);
Owner

This is done on both branches, should be outside of if.

This is done on both branches, should be outside of `if`.
Author
Member

On first branch it has one parameter and in the second one has two.

On first branch it has one parameter and in the second one has two.
cristi marked this conversation as resolved
@ -576,0 +609,4 @@
uiHandler.post(() -> {
Log.v(TAG, "myService: " + (myService != null));
if (myService != null) {
myService.stopTCPConnection();
Owner

Is this related to tcp.Stop() above? Is it independent? Why?

Is this related to `tcp.Stop()` above? Is it independent? Why?
@ -576,0 +614,4 @@
getApplicationContext().bindService(new Intent(context, TCPService.class), serviceConnection, Context.BIND_AUTO_CREATE);
if (getRadioActivity() != null)
getRadioActivity().onCreate(getRadioActivity().savedInstanceState);
Owner

Why is here savedInstanceState and getSavedInstanceState on the others?

Why is here `savedInstanceState` and `getSavedInstanceState` on the others?
Author
Member

Because savedInstanceState is the name of the variable and we didn't have a getter. Now I've created one and I'm using it.

Because savedInstanceState is the name of the variable and we didn't have a getter. Now I've created one and I'm using it.
cristi marked this conversation as resolved
CiufudeanDani added 1 commit 2022-05-03 07:44:53 +00:00
cristi approved these changes 2022-05-03 08:10:36 +00:00
cristi left a comment
Owner

ok from my side for now

ok from my side for now
CiufudeanDani merged commit 8b89319d09 into develop 2022-05-03 08:27:34 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Safemobile/safedispatch-mobile#32
No description provided.