OSDN Git Service

Load account type icons in a background thread before scrolling down
authorAmith Yamasani <yamasani@google.com>
Wed, 2 Oct 2013 18:48:46 +0000 (11:48 -0700)
committerAmith Yamasani <yamasani@google.com>
Wed, 2 Oct 2013 18:48:46 +0000 (11:48 -0700)
commit2972c0136de098a7721555821bfb7451324b33ca
treeb0a69870889b816b8a0ec60e28dbf1e1ac8692d4
parent028b6b3f7cc79587a42583351e2c032f71e7ac8c
Load account type icons in a background thread before scrolling down

This reduces the jank when scrolling down in top-level Settings if you
happen to have several account types like Google, Twitter, Facebook, etc.

In the process of doing this, discovered that headers get built even when
they're not showing (SubSettings). Skip setting up the headers, which can
be expensive when there are several accounts.

Bug: 11006601
Change-Id: I8b4eafdcc2fc2beecac01317c3c8f07a82febcc0
src/com/android/settings/Settings.java
src/com/android/settings/accounts/AuthenticatorHelper.java