commit | f4a2e1df940f75534af364b7d7dad46a4b25bd44 | [log] [tgz] |
---|---|---|
author | David Stevens <stevensd@google.com> | Thu Apr 06 20:48:34 2017 -0700 |
committer | David Stevens <stevensd@google.com> | Thu Apr 06 22:51:05 2017 -0700 |
tree | 101b66759c9273380a023979ab91e057110c6861 | |
parent | 8ce439a76861e9e90b5b8ef7fa757bf798ac76fa [diff] |
Reset the default usb package less often This CL makes logic for resetting the default package for handling USB intents less agressive (added in ag/101452). First, instead of listening for package changed events, we now listen for package replaced broadcasts. Second, we don't reset the default package if the app being added/updated is already the default package. Bug: 35491880 Test: Manually tested with a work profile Change-Id: Id1992239b5d8ace87fefeb4acd6ca1031c3c1085