Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a820a9c authored by Aaron Liu's avatar Aaron Liu Committed by Android (Google) Code Review
Browse files

Merge "Set top and bottom of lock icon to be global rect." into udc-qpr-dev

parents 0911171b 116aa758
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
@@ -154,11 +155,16 @@ public class LockIconView extends FrameLayout implements Dumpable {
    }

    float getLocationTop() {
        return mLockIconCenter.y - mRadius;
        Rect r = new Rect();
        mLockIcon.getGlobalVisibleRect(r);
        return r.top;
    }

    float getLocationBottom() {
        return mLockIconCenter.y + mRadius;
        Rect r = new Rect();
        mLockIcon.getGlobalVisibleRect(r);
        return r.bottom;

    }

    /**