-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor RemoveDeleteTree deferred work
Summary: Instead of directly scheduling a Runnable on the UI thread, use a GuardedFrameCallback which (1) guards against exceptions thrown on the UI thread (in this case, errors in deferred remove/delete work really should not disrupt the UI at all or cause user-visible crashes) (2) allows us to split work across multiple frames if necessary (3) is more consistent with how we schedule other work on Android. The only functionality change is that we might split work across multiple callbacks, in the case of tearing down a particularly large tree. Changelog: [Internal] Reviewed By: javache Differential Revision: D37470531 fbshipit-source-id: d9d1fc85c29e53addea886db975c0d914581e618
- Loading branch information
1 parent
1115bc7
commit ca8481b
Showing
1 changed file
with
89 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters