diff options
author | Tiger Huang <tigerhuang@google.com> | 2021-04-17 02:37:23 +0800 |
---|---|---|
committer | Tiger Huang <tigerhuang@google.com> | 2021-04-19 15:33:10 +0800 |
commit | 55581522eaf0dbb4356824d3bb8dc460110e70cc (patch) | |
tree | 80148d524aa0bbd3361c665788e8f8fc5818a627 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | e7f2887e7d25554a9fdb2e0fa7dc125aa3ab3859 (diff) |
Stop processing if the new control equals the current one
InsetsSourceConsumer#setControl compares the identities between the new
control and current one. If they are the same, the function stops
processing. However, the instance of the control returned from relayout
will always be different, which makes setControl process more than
expected.
This CL overrides InsetsSourceControl#equals, and use it to decide if we
should do further processing in setControl.
Bug: 185193241
Fix: 185460364
Test: steps in the bug
Change-Id: If347df353202ef441b57dabccfd0ef254ec72477
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions