diff options
author | Beverly <beverlyt@google.com> | 2021-06-29 14:24:50 -0400 |
---|---|---|
committer | Beverly Tai <beverlyt@google.com> | 2021-07-01 19:25:45 +0000 |
commit | 4bebd71f8364da6b7e12b889f1ebbd36a8476436 (patch) | |
tree | be4e78d7234a41e74fcd94c59601ae3584cfd840 /packages/SystemUI/src/com/android/keyguard/LockIconView.java | |
parent | e68668899b47b1ba00a75fc3e2737cb934b646ff (diff) |
Always show lock icon if device is locked
- Previously lock icon would only show on devices with udfps or face auth
enabled.
- Icon is only clickable if udfps is enrolled OR device is unlocked
Bug: 192355838
Fixes: 187083137
Test: manual
Change-Id: I2bf160ba2e09d215a95dce05a55bdbf1ed587e63
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/LockIconView.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconView.java b/packages/SystemUI/src/com/android/keyguard/LockIconView.java index 423bd5626da9..c425ddf7eeb1 100644 --- a/packages/SystemUI/src/com/android/keyguard/LockIconView.java +++ b/packages/SystemUI/src/com/android/keyguard/LockIconView.java @@ -16,7 +16,6 @@ package com.android.keyguard; -import android.annotation.NonNull; import android.content.Context; import android.graphics.PointF; import android.graphics.RectF; @@ -24,10 +23,17 @@ import android.util.AttributeSet; import android.widget.FrameLayout; import android.widget.ImageView; +import androidx.annotation.NonNull; + +import com.android.systemui.Dumpable; + +import java.io.FileDescriptor; +import java.io.PrintWriter; + /** * A view positioned under the notification shade. */ -public class LockIconView extends ImageView { +public class LockIconView extends ImageView implements Dumpable { @NonNull private final RectF mSensorRect; @NonNull private PointF mLockIconCenter = new PointF(0f, 0f); private int mRadius; @@ -63,4 +69,11 @@ public class LockIconView extends ImageView { float getLocationTop() { return mLockIconCenter.y - mRadius; } + + + @Override + public void dump(@NonNull FileDescriptor fd, @NonNull PrintWriter pw, @NonNull String[] args) { + pw.println("Center in px (x, y)= (" + mLockIconCenter.x + ", " + mLockIconCenter.y + ")"); + pw.println("Radius in pixels: " + mRadius); + } } |