OSDN Git Service

Only keep user switcher bitmaps if needed
authorAdrian Roos <roosa@google.com>
Mon, 17 Nov 2014 16:41:28 +0000 (17:41 +0100)
committerAdrian Roos <roosa@google.com>
Mon, 17 Nov 2014 17:08:16 +0000 (18:08 +0100)
commitcba0faadbe1c8cf7c6b264b761d747f7381a2f93
treef95c07a23d3f36c6a43f5c27dec889c9adb9c09b
parent2b154a9ec32915fe4a0dbc648344586fb5fa0261
Only keep user switcher bitmaps if needed

Only keeps icons if the user switcher is accessible. On phones, this
is any time quick settings is expanded. On tablets, this would be whenever
the keyguard shows. Reloading them on each screen off transition seems too
wasteful however, so we keep them in-memory all the time on tablets.

Bug: 18350670
Change-Id: I416beb82156787e61ee1f59b6726fd702f135f68
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardUserSwitcher.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java