summaryrefslogtreecommitdiff
path: root/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-08-11 14:58:44 -0700
committerSelim Cinek <cinek@google.com>2015-08-11 16:37:54 -0700
commitcfafe4ea6ff1610c24d94a9a9ecc7df6b841518c (patch)
tree2cade289fabc638c60e8bca6ebbdde0f89fd49e1 /packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
parentec85b52232b603086e3cb85214e0895dd99c2b4b (diff)
Indicating fingerprint error messages on the bouncer now
Also ensure that error messages are surfaced when the screen comes on such that the user knows why his fingerprint is not working. Bug: 22035466 Bug: 22524101 Change-Id: I00b0e833cdb8a3475545ba75b8cb7bf7a419dfd4
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
index 4bd1a2ed29fc..a96c79f0dbc3 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
@@ -15,10 +15,6 @@
*/
package com.android.keyguard;
-import android.animation.Animator;
-import android.animation.AnimatorListenerAdapter;
-import android.animation.ObjectAnimator;
-import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Rect;
import android.os.AsyncTask;
@@ -28,7 +24,6 @@ import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
-import android.view.RenderNodeAnimator;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AnimationUtils;
@@ -342,6 +337,12 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit
}
@Override
+ public void showMessage(String message, int color) {
+ mSecurityMessageDisplay.setNextMessageColor(color);
+ mSecurityMessageDisplay.setMessage(message, true /* important */);
+ }
+
+ @Override
public void startAppearAnimation() {
enableClipping(false);
setAlpha(1f);