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>
Tue, 25 Oct 2016 18:02:21 +0000 (11:02 -0700)
commita1b60e629f529111fbcd3b853774f3b3603b7831
tree80385dc7073089797d782a37dc347f58d9ab3fb0
parent363c529dc6ec232b9c12c478ee33238ed21d5be5
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
(cherry picked from commit 5d36a177d95184aaa0763d07aa38ff028f5a9b9c)
src/com/android/settings/DevelopmentSettings.java
src/com/android/settings/deviceinfo/UsbBackend.java