Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8e4407e6 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

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
parent 5fe91634
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment