Explicitly disable the data saver mode before checking the app state.
Bug: 244450780 Test: atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests Change-Id: I6a8be0dcfa62286bedd972eb868ab01f3a1545a7
This commit is contained in:
@@ -116,6 +116,7 @@ public class NetworkPolicyTestUtils {
|
||||
return false;
|
||||
}
|
||||
if (mDataSaverSupported == null) {
|
||||
setRestrictBackgroundInternal(false);
|
||||
assertMyRestrictBackgroundStatus(RESTRICT_BACKGROUND_STATUS_DISABLED);
|
||||
try {
|
||||
setRestrictBackgroundInternal(true);
|
||||
|
||||
Reference in New Issue
Block a user