summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2018-12-17 16:59:16 +0000
committerEran Messeri <eranm@google.com>2018-12-21 10:05:47 +0000
commit65acd234921ae4a07ad7cbe49c69347fe194033a (patch)
treeecfb365163d1bdfecced7357f2ea37103ce118e4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parenta13ea6fdc234db389219751195e7c8a6204675bc (diff)
Private DNS: Fix handling of null mode
Address the case where the Private DNS mode has not been set at all, so the value obtained from settings when reading it is null. Java cannot cope with null value in a switch statement, so translate that case to the default value (from the ConnectivityManager), in the same way the Settings code does when presenting Private DNS mode to the user. Bug: 112982691 Test: Factory reset a device, then atest com.android.cts.devicepolicy.DeviceOwnerTest#testPrivateDnsPolicy Change-Id: Ife6b5c15b70517f75d8815103a19a9ef72122212
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions