commit | 89e2ee9bc7f5c6ce012d815b93082dc6d8038840 | [log] [tgz] |
---|---|---|
author | Kyunglyul Hyun <klhyun@google.com> | Fri Apr 10 20:17:04 2020 +0900 |
committer | Kyunglyul Hyun <klhyun@google.com> | Fri Apr 10 22:07:54 2020 +0900 |
tree | 52a584ccc7f30ec0e693792df02da7602204b630 | |
parent | 926a6d7a334c9c572bcf3afc1cced943fc8fe48e [diff] |
MediaRouter: don't scanPackages if unnecessary scanPackages was called whenever it receives a broadcast, which could be duplicated. This CL adds a boolean variable (mScanPackagesScheduled) not to scan packages if it is scheduled. Bug: 153527463 Test: cts test, atest mediarouertest and check MediaRouteProvider#onBind, #onUnbind are called when a new provider is installed. Confirm # of calls is reduced (3 -> 1). Change-Id: Iaa423b7d1b2b2a97aebed0001b4077bdf95b1d54