diff options
author | Daniel Sandler <dsandler@android.com> | 2013-10-10 12:44:12 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2013-10-10 16:18:28 -0400 |
commit | 26b7bf6e3cf6be009cd4baf59e083bce37633a4a (patch) | |
tree | b7602c54f359591c36450a52440133219f589893 /packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java | |
parent | e6d419de77344300e342c8a0f6c013afeec87a72 (diff) | |
download | frameworks_base-26b7bf6e3cf6be009cd4baf59e083bce37633a4a.zip frameworks_base-26b7bf6e3cf6be009cd4baf59e083bce37633a4a.tar.gz frameworks_base-26b7bf6e3cf6be009cd4baf59e083bce37633a4a.tar.bz2 |
Properly size KG camera animation for translucent bars.
The KGHV now plumbs insets information down into the camera
so that it can leave space for the navigation bar if the KG
window happens to extend underneath it. The camera widget
preview must therefore be rendered to fit the size of the
smaller inset content area, which means there's now a hole
at the bottom; we fill this bottom area during animation
with a fake navigation bar: a black view occupying the area
underneath the real navbar.
Bug: 11048015
Change-Id: Ia23b62e155686ad9f17a25ccc14f6c97b53dafea
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java index c4be72f..ef3d712 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java @@ -1454,6 +1454,9 @@ public class KeyguardHostView extends KeyguardViewBase { mInsets.set(insets); if (mSlidingChallengeLayout != null) mSlidingChallengeLayout.setInsets(mInsets); if (mMultiPaneChallengeLayout != null) mMultiPaneChallengeLayout.setInsets(mInsets); + + final CameraWidgetFrame cameraWidget = findCameraPage(); + if (cameraWidget != null) cameraWidget.setInsets(mInsets); } @Override |