OSDN Git Service

Do not unnecessarily re-inflate camera preview
authorLucas Dupin <dupin@google.com>
Fri, 19 Apr 2019 02:23:06 +0000 (19:23 -0700)
committerLucas Dupin <dupin@google.com>
Fri, 19 Apr 2019 16:08:38 +0000 (16:08 +0000)
commit3704d53fe1303cee029b633c665dff5a4ed6e621
tree06484b271ee87ab88afcd2276371af88729a7ea0
parentdb44ba1e85fbba8ad9628d48af6948fb3757c0d9
Do not unnecessarily re-inflate camera preview

Camera preview inflation was happening every time the keyguard
visibility changed, causing jank and making sysui drop frames.

Ultimately, the symptom was AOD flashing after pressing power.

Fixes: 130878131
Test: press power to go from and to AOD
Test: double tap power to launch camera (preview is still available)
Test: press power to lock device from launcher
Change-Id: Id3df83d59dcd123a71b37297e9ab70a1e8a52c90
packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java