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

Commit 7107c4de authored by Cody Kesting's avatar Cody Kesting
Browse files

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

Change-Id: I1d6abfd94e2123035084bd45d6c6b241ca0513dc
parents acab832b b8d26547
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);