OSDN Git Service

Fixed unnecessary layer creations in the pin unlock method
authorSelim Cinek <cinek@google.com>
Wed, 10 Sep 2014 14:39:01 +0000 (16:39 +0200)
committerSelim Cinek <cinek@google.com>
Wed, 10 Sep 2014 14:39:01 +0000 (16:39 +0200)
This was especially noticible when double tapping a notification
because of the staggered appearing.

Bug: 17287256
Change-Id: I8f39892fa122bb8b7b6f2a7b1e7be8a9570e661e

packages/Keyguard/src/com/android/keyguard/NumPadKey.java
packages/Keyguard/src/com/android/keyguard/PasswordTextView.java

index 2d20b02..d539856 100644 (file)
@@ -152,6 +152,11 @@ public class NumPadKey extends ViewGroup {
         mKlondikeText.layout(left, top, left + mKlondikeText.getMeasuredWidth(), bottom);
     }
 
+    @Override
+    public boolean hasOverlappingRendering() {
+        return false;
+    }
+
     // Cause a VIRTUAL_KEY vibration
     public void doHapticKeyClick() {
         if (mEnableHaptics) {
index f3ba3a7..6497f46 100644 (file)
@@ -145,6 +145,11 @@ public class PasswordTextView extends View {
         }
     }
 
+    @Override
+    public boolean hasOverlappingRendering() {
+        return false;
+    }
+
     private Rect getCharBounds() {
         float textHeight = mTextHeightRaw * getResources().getDisplayMetrics().scaledDensity;
         mDrawPaint.setTextSize(textHeight);