summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2023-12-07 12:16:46 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2023-12-07 12:16:46 +0000
commit83bc4f75b37667a5b9d12215d0b8c02d16978c91 (patch)
treea73d85ec56bb28558d3d28dbc2cd80f53722164f /libs/androidfw/StringPool.cpp
parent6ed42ea1c3b6df59bbf2fbe9f8eb95d44fd5f269 (diff)
Fix leak in RotationHelper registration to DeviceStateManager
It seems RotationHelper#enable was being called several times, and each "enable" was not matched by a "disabled". This resulted in DeviceStateManager#FoldStateListener having a huge number of callbacks, and eventually it took 500ms for DeviceStateManager to deliver the event to SystemUI. This avoids creating a new listener every time: the DSM#registerCallback will not register a callback twice. Flag: None Fixes: 310584951 Test: checked listeners count after unfolds and rotations Change-Id: I7e938794031203828bad26a4ee114a9a3b147668
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions