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

Skip to content
Commit d8fa716e authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Improve provider status query wait

Follow-up to I9bc34e7d.

Don't wait for the provider status to be loaded more than once in a single
call tree.

Before, in order to update ContactsUnavailableFragment from
PeopleActivity.updateViewConfiguration(),
ProviderStatusWatcher.getProviderStatus() may have been called multiple times
in a single call tree, and each call could block the UI thread at most 1 second,
so in total the UI thread may have been blocked >= 2 seconds.

Now we only call ProviderStatusWatcher.getProviderStatus() once per the
updateViewConfiguration() call and pass around the result, so the UI
thread is blocked at most 1 second per call.

Bug 6503283

Change-Id: Ife55d3c6f9e052d82387629c082e41aaad737543
parent c88b099d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment