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, 24 Jan 2017 21:27:14 +0000 (13:27 -0800)
commita291336bd8e772220c8e6ab066baecb6798dafc9
tree732a82f7492dd4f77ea079ebface3ef8d54b4979
parent4b69b113fb6d5679dd44c6d9cc5dbaad796a15c4
Refactor setCurrentFunction and setUsbDataUnlocked into one method

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

Bug: 31814300
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