diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2015-08-17 17:38:58 -0700 |
|---|---|---|
| committer | Jorim Jaggi <jjaggi@google.com> | 2015-08-18 17:57:10 -0700 |
| commit | 83eb6bb5d83d3994a3750b566a2109a049ab1388 (patch) | |
| tree | 69a25df5abc37ef4261c9d2a4e3bf50c8f9a156b /packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java | |
| parent | 007f0e8f207d3d6d2f47d725b72459edf317cce9 (diff) | |
| download | frameworks_base-83eb6bb5d83d3994a3750b566a2109a049ab1388.zip frameworks_base-83eb6bb5d83d3994a3750b566a2109a049ab1388.tar.gz frameworks_base-83eb6bb5d83d3994a3750b566a2109a049ab1388.tar.bz2 | |
Improve motion for wake-and-unlocking while pulsing
- Move all fingerprint related to logic in on central class in
SystemUI that knows all the state of the UI so there is exactly ONE
place in which we decide what to do when we acquire a fingerprint.
- When pulsing and we get a valid finger, we fade the contents of the
Keyguard out and fade the scrim out almost the same way as we would do
in a normal wake-and-unlock sequence.
- Hide shadows while dozing, so we don't see the artifacts when we fade
the dozed Keyguard out.
Bug: 23225107
Change-Id: I82f78e61f2530cf7d507ade80f6f0a340c082567
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java')
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java index d77e050..a6fc4bb 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java @@ -34,6 +34,7 @@ public abstract class ExpandableOutlineView extends ExpandableView { private final Rect mOutlineRect = new Rect(); protected final int mRoundedRectCornerRadius; private boolean mCustomOutline; + private float mOutlineAlpha = 1f; public ExpandableOutlineView(Context context, AttributeSet attrs) { super(context, attrs); @@ -50,6 +51,7 @@ public abstract class ExpandableOutlineView extends ExpandableView { } else { outline.setRoundRect(mOutlineRect, mRoundedRectCornerRadius); } + outline.setAlpha(mOutlineAlpha); } }); } @@ -66,6 +68,11 @@ public abstract class ExpandableOutlineView extends ExpandableView { invalidateOutline(); } + protected void setOutlineAlpha(float alpha) { + mOutlineAlpha = alpha; + invalidateOutline(); + } + protected void setOutlineRect(RectF rect) { if (rect != null) { setOutlineRect(rect.left, rect.top, rect.right, rect.bottom); |
