OSDN Git Service

Refactor setCurrentFunction and setUsbDataUnlocked into one method
authorJerry Zhang <zhangjerry@google.com>
Wed, 12 Oct 2016 21:42:56 +0000 (14:42 -0700)
committerJerry Zhang <zhangjerry@google.com>
Fri, 14 Oct 2016 00:32:22 +0000 (17:32 -0700)
commit5d36a177d95184aaa0763d07aa38ff028f5a9b9c
treee4fe87ed2cac7b66ad2d15e9b902e6c2efabd32d
parent2b03a7d092b8e0267833915ab7e770621ea45c47
Refactor setCurrentFunction and setUsbDataUnlocked into one method

This allows us to get rid of an extraneous config switch and
simplify some code.

Test: Manually change usb configuration
Change-Id: Id78da530ff485ecd7a915056832eec1dd8c91954
src/com/android/settings/DevelopmentSettings.java
src/com/android/settings/deviceinfo/UsbBackend.java