File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
src/main/java/com/afwsamples/testdpc Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ bazel-android-testdpc
2
+ bazel-bin
3
+ bazel-out
4
+ bazel-testlogs
5
+ ** /* .iml
6
+ .idea
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ See the [documentation](https://developer.android.com/work/index.html) to learn
8
8
Getting Started
9
9
---------------
10
10
11
- This sample uses the Bazel build system. To build this project, use the "bazel build --noincremental_dexing " command.
11
+ This sample uses the Bazel build system. To build this project, use the "bazel build testdpc " command.
12
12
13
13
This app can also be found [ on the Play store] ( https://play.google.com/store/apps/details?id=com.afwsamples.testdpc ) .
14
14
Original file line number Diff line number Diff line change 48
48
import java .util .Set ;
49
49
import java .util .function .Consumer ;
50
50
import java .util .stream .Collectors ;
51
+ import static com .afwsamples .testdpc .common .Util .isAtLeastT ;
51
52
52
53
public final class DevicePolicyManagerGatewayImpl implements DevicePolicyManagerGateway {
53
54
@@ -651,7 +652,9 @@ public void setPreferentialNetworkServiceEnabled(
651
652
652
653
@ Override
653
654
public boolean isPreferentialNetworkServiceEnabled () {
654
- Util .requireAndroidS ();
655
+ if (!isAtLeastT ()) {
656
+ return false ;
657
+ }
655
658
656
659
return mDevicePolicyManager .isPreferentialNetworkServiceEnabled ();
657
660
}
You can’t perform that action at this time.
0 commit comments