summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorPuma Hsu <pumahsu@google.com>2020-03-09 16:57:43 +0800
committerPuma Hsu <pumahsu@google.com>2020-03-10 17:36:16 +0800
commite177e7bd428d520d4aa1752a5875fd657d06e986 (patch)
treec627383181593efd90d25535c1913e220351ff5a /tools/aapt2/java/JavaClassGenerator.cpp
parent45019d2f93aa5d297e8a502ac39bb9434dce9927 (diff)
Fix function setting failed in Developer options
One can select USB function in Settings->System-> Developer options->Default USB configuration without a cable connected, and the selected function will be the default function after re-connecting. However, this function might be restored to NONE due to ENUMERATION_TIMEOUT if one selected the function without a cable connected. When the device is not connected to a host, we should not queue the ENUMERATION_TIMEOUT while switching function. Fix it by checking connected status and also make it switch to corresponding function if an user has selected one in the Default USB configuration. Bug: 150422683 Test: Switch functions from Default USB configuration for the both cases cable connecting and disconnecting. And also try it while there is the secure lock. Signed-off-by: Puma Hsu <pumahsu@google.com> Change-Id: I1933c098e47496b8d6813a5a4e295bcf12027401
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions