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
Loading
Please register or sign in to comment