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

Skip to content
Commit fc442bde authored by Jeff Brown's avatar Jeff Brown
Browse files

Ensure the RemoteViewsAdapter cleans up its HandlerThread.

Using a finalizer for this is kind of gross but it is robust.
We could try to hook onDetachedFromWindow() on the View
but that would introduce additional lifecycle management to
the adapter since a View could potentially be detached and then
reattached, so we might need to recreate the handler, etc.

Ideally this code should probably be changed to use AsyncTask.

Change-Id: I9ad5fff388411619363e4a075ed0244966b38726
parent eaf7ce60
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