UsbManager.getDefaultFunction() might not return the updated state immediately
after changing the USB configuration, so do not rely on it for updating
after a checkbox has been clicked.
Change-Id: I5ae8d46854f24403cda2c62e006c742dcd257d1d
Bug: 5334777
Signed-off-by: Mike Lockwood <lockwood@android.com>
There does not seem to be a way to implement radio buttons in a settings screen,
so I am using check boxes as a temporary hack.
Change-Id: I2d2c7931f689ff04608662b64aafc4862cfef48e
Signed-off-by: Mike Lockwood <lockwood@android.com>