summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2018-01-08 12:20:28 +0000
committerNarayan Kamath <narayan@google.com>2018-01-08 12:43:29 +0000
commitee07f627c947a07533b1f5d0d5e559a17e934e99 (patch)
treec201253706bacd53c7f761f4b7a4ecca7d07f7bd /tools/aapt2/java/JavaClassGenerator.cpp
parentab4c1eaa41fb7fe2b7cbf0982bc6abbfe92e094a (diff)
WorkSource: Fix WorkSource#remove for chained worksources.
- It doesn't make sense to clear the list of WorkChains if we're remove is called with a WorkSource that has no chains. - The early return for mNum <= 0 is faulty because it incorrectly returns early for WorkSources that have workChains but no flat UIDs. Test: WorkSourceTest Bug: 62390666 Change-Id: I4c0e69bdd7c114b41329aa329d1c1d08a8cb9b59
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions