diff options
| author | 2022-04-26 15:16:03 +0200 | |
|---|---|---|
| committer | 2022-04-26 16:38:38 +0200 | |
| commit | 4f9990471183f5029f57c7a18c02f11b0a2796a9 (patch) | |
| tree | 9a2e0a567faecc5fb03205a81d9bd32cb8225c83 /libs/androidfw/StringPool.cpp | |
| parent | 9cbaca73065a821e3c49f9b98d054e834b701dd9 (diff) | |
Fix re-registering PositionUpdateListener
Nulls out `info.mPositionUpdateListener` after unregistering the
Listener, allowing a new PositionUpdateListener to be registered later.
`addPositionUpdateListener` was only called if
`info.mPositionUpdateListener` is non-null.
The Listener is first created and registered if the system needs to keep
track of the View's bounds (eg. if it is marked as a keep clear area).
If the system no longer needs to keep track of the View's bounds, the
Listener is unregistered, but wasn't set to `null`.
When the system later needs to receive updates about the View's bounds
again, the listener failed to be re-registered because it was non-null.
Bug: 226583836
Test: Manual, check position updates of View
Change-Id: Ia494e84843a9954e368d76a000f5f725e3a58df1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions