Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8d26547 authored by Cody Kesting's avatar Cody Kesting
Browse files

Merge "Update version check for notifyNetworkTested() call." am: 1f67bac3

Change-Id: I1b2a024427264df36df25b42cb7bb47e1648c5cc
parents eeab42ea 1f67bac3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -612,7 +612,7 @@ public class NetworkMonitor extends StateMachine {
    private void notifyNetworkTested(
            int result, @Nullable String redirectUrl, PersistableBundle extras) {
        try {
            if (mCallbackVersion <= 5) {
            if (mCallbackVersion <= 4) {
                mCallback.notifyNetworkTested(result, redirectUrl);
            } else {
                mCallback.notifyNetworkTestedWithExtras(
+1 −1
Original line number Diff line number Diff line
@@ -1425,7 +1425,7 @@ public class NetworkMonitorTest {
    public void testNotifyNetwork_NotifyNetworkTestedOldInterfaceVersion() throws Exception {
        // Use old interface version so notifyNetworkTested is used over
        // notifyNetworkTestedWithExtras
        resetCallbacks(5);
        resetCallbacks(4);

        // Trigger Network validation
        setStatus(mHttpsConnection, 204);