summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2021-03-16 19:30:08 +0900
committerChalard Jean <jchalard@google.com>2021-03-17 07:58:53 +0000
commit0d2b748aea748c823b48450fd45df13520d7e71b (patch)
treec2adbc29a85921d495420d488174718106678d28 /rs/java/android/renderscript/RenderScript.java
parent5b30e438dee9b6a1284a1a4ba048b28f8ed3a667 (diff)
Check for FEATURE_TELEPHONY instead of CM
The ConnectivityManager#isNetworkSupported has been deprecated a long time ago and can no longer be called from the system server as it's moving to a mainline module. Instead of checking for support of a MOBILE network, ask for FEATURE_TELEPHONY. Note that this might not be 100% behavior-neutral, as the old ConnectivityManager#isNetworkSupported would return based on an OEM-configured resource, while the new one is based on whether the device supports the featureĀ ; in particular, devices with phone call support but without data support have the feature, but may not have had the resource configuration. The contention is that the new behavior is better, because Airplane mode should depend on whether there is a telephony radio on the device, not on whether that radio supports data transfers. Bug: 172183305 Test: FrameworksServicesTests Change-Id: Ifb5ba537cb029b3aeebf74407002d873ec614f8d
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions