Merge "Make sure the right NetworkMonitor start method is called on S-/T+"

This commit is contained in:
Treehugger Robot 2022-02-25 02:23:09 +00:00 • committed by Gerrit Code Review
commit 894912c85e

View file

@ -949,6 +949,11 @@ public class ConnectivityServiceTest {
}
private void onValidationRequested() throws Exception {
if (SdkLevel.isAtLeastT()) {
verify(mNetworkMonitor).notifyNetworkConnectedParcel(any());
} else {
verify(mNetworkMonitor).notifyNetworkConnected(any(), any());
}
if (mNmProvNotificationRequested
&& ((mNmValidationResult & NETWORK_VALIDATION_RESULT_VALID) != 0)) {
mNmCallbacks.hideProvisioningNotification();