Merge "Fixed unnecessary layer creations in the pin unlock method" into lmp-dev

This commit is contained in:
Selim Cinek
2014-09-10 15:08:32 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View 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) {

View 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);