summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2024-07-15 13:58:06 -0700
committer Siarhei Vishniakou <svv@google.com> 2024-07-15 21:52:25 +0000
commit8e4407e6a741bc2226c14fc8498ef002982bc44c (patch)
treea6d165b768c8630eec3e15986eb6e7a5ff92b091 /libs/androidfw/StringPool.cpp
parent5fe9163436677b059c27e49f62a488602720e335 (diff)
Do not set dispose callback when flag is enabled
When input channel is disposed, it triggers the dispose callback, which will explicitly remove the channel from the dispatcher, even if there are other open fds for this connection on the client side. This behaviour is different from the finalizer. When the input channel's finalizer runs, it will delete the native object, but will not trigger the dispose callback. Therefore, with the new flag, we should avoid setting the dispose callback on the input channel. This way, when the flag is rolled out, we can directly remove the dispose callback functionality. Bug: Bug: 323450804 Test: opened apps and then relaunched them from recents Flag: com.android.input.flags.remove_input_channel_from_windowstate Change-Id: I5a2566c41cb7c6650f3e84f8430b29fcac8ddef2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions