OSDN Git Service

Fix build failed of Settings test cases while importing AndroidX
authorJason Chiu <chiujason@google.com>
Mon, 17 Dec 2018 07:56:56 +0000 (15:56 +0800)
committerJason Chiu <chiujason@google.com>
Mon, 17 Dec 2018 08:46:42 +0000 (16:46 +0800)
commit7aa7ece7a2a98dec63c76f8c501b221c42eb8034
tree8797077fe3ba3378c125299280ec09a08534f1a5
parent6c403a876dd2051081143a1c866bc1d0eb53ade9
Fix build failed of Settings test cases while importing AndroidX

- API change in AndroidX Preference causes a build breakage
- Apply explicit casting for the new API interface

Test: robotest
Fixes: 121109361
Change-Id: If3e7be9e53c7860252523700d6721ae4956db68a
tests/robotests/src/com/android/settings/connecteddevice/AvailableMediaDeviceGroupControllerTest.java
tests/robotests/src/com/android/settings/connecteddevice/ConnectedDeviceGroupControllerTest.java
tests/robotests/src/com/android/settings/connecteddevice/usb/UsbDetailsPowerRoleControllerTest.java
tests/robotests/src/com/android/settings/deviceinfo/BuildNumberPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/WorkSoundPreferenceControllerTest.java