Use new UsbManager#getPorts API
Test: - Looked as USB state in Settings - RunSettingsRoboTests Bug: 115301401 Change-Id: I07ac20ac6a3f33d99e9edb6718318ede22681be1
This commit is contained in:
@@ -49,8 +49,8 @@ public class UsbConnectionBroadcastReceiver extends BroadcastReceiver implements
|
||||
mUsbBackend = backend;
|
||||
|
||||
mFunctions = UsbManager.FUNCTION_NONE;
|
||||
mDataRole = UsbPort.DATA_ROLE_NONE;
|
||||
mPowerRole = UsbPort.POWER_ROLE_NONE;
|
||||
mDataRole = UsbPortStatus.DATA_ROLE_NONE;
|
||||
mPowerRole = UsbPortStatus.POWER_ROLE_NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user