diff options
| author | Kyunglyul Hyun <klhyun@google.com> | 2020-04-10 20:17:04 +0900 |
|---|---|---|
| committer | Kyunglyul Hyun <klhyun@google.com> | 2020-04-10 22:07:54 +0900 |
| commit | 89e2ee9bc7f5c6ce012d815b93082dc6d8038840 (patch) | |
| tree | 52a584ccc7f30ec0e693792df02da7602204b630 /tools/aapt2/diff/Diff.cpp | |
| 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
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions
