OSDN Git Service

When user has DISALLOW_USB_FILE_TRANSFER set, disable settings controls.
authorMaggie Benthall <mbenthall@google.com>
Thu, 28 Mar 2013 18:58:27 +0000 (14:58 -0400)
committerMaggie Benthall <mbenthall@google.com>
Fri, 29 Mar 2013 22:59:33 +0000 (18:59 -0400)
commit6ad2e323f7733f39c6757a19a9ae9f5020cf9225
tree6db5c0ae288cedae7e63ec336566a9de13bc3709
parentfee612df197ab3da969dff39ecc3df95b931cfae
When user has DISALLOW_USB_FILE_TRANSFER set, disable settings controls.

Under Settings > Storage, remove the "USB computer connection" menu item.
In case someone launches the UsbSettings screen instead, also disable those checkboxes.

Change-Id: I59ec8b16bed4670beeac8d359e5368e4a659061b
src/com/android/settings/deviceinfo/Memory.java
src/com/android/settings/deviceinfo/UsbSettings.java