Skip to content

chore(ui): drain Handler thread queue when activity is destroyed#99

Merged
iusmac merged 1 commit into16.0-devfrom
chore-drain-handler-thread-queue-when-activity-is-destroyed
Feb 14, 2026
Merged

chore(ui): drain Handler thread queue when activity is destroyed#99
iusmac merged 1 commit into16.0-devfrom
chore-drain-handler-thread-queue-when-activity-is-destroyed

Conversation

@iusmac
Copy link
Owner

@iusmac iusmac commented Feb 14, 2026

Currently, we don't have any tasks that could execute after the Activity is destroyed and lead to crashes or unexpected behaviors. So, it's better to drain this static Handler thread's queue upon Activity destruction to prevent quite realistic, well-known bugs tied to Android lifecycle that we might face in the future if making any changes.

Currently, we don't have any tasks that could execute after the Activity
is destroyed and lead to crashes or unexpected behaviors. So, it's
better to drain this static Handler thread's queue upon Activity
destruction to prevent quite realistic, well-known bugs tied to Android
lifecycle that we might face in the future if making any changes.
@iusmac iusmac merged commit 9a4b0c5 into 16.0-dev Feb 14, 2026
1 check passed
@iusmac iusmac deleted the chore-drain-handler-thread-queue-when-activity-is-destroyed branch February 14, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant