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

Skip to content
Commit 272ccf24 authored by Danny Baumann's avatar Danny Baumann
Browse files

Fix threads running after entering call log, possibly affecting battery

life.

When having entered the call log or the call stats activities once, the
contact lookup thread (which wakes once per second) continued to run
even after leaving the activity.
The root cause for that was that the ViewTreeObserver obtained at
registerOnPreDrawListener() time was no longer valid when
unregisterOnPreDrawListener() was called. Fix that by storing a
reference to the observed view instead of the observer and fetching the
current observer when needed.

Change-Id: I3209712a52371f99772f522d03bc6b209272089c
parent e5eb971e
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