Merge "Fix the illumination dot getting stuck"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fcd5f298ac
@@ -156,6 +156,7 @@ class UdfpsController {
|
||||
}
|
||||
|
||||
private void hideUdfpsOverlay() {
|
||||
onFingerUp();
|
||||
mHandler.post(() -> {
|
||||
Log.v(TAG, "hideUdfpsOverlay | removing window");
|
||||
if (mIsOverlayShowing) {
|
||||
|
||||
@@ -143,12 +143,12 @@ public class UdfpsView extends View {
|
||||
void onFingerDown() {
|
||||
mIsFingerDown = true;
|
||||
mSensorPaint.setStyle(Paint.Style.FILL);
|
||||
invalidate();
|
||||
postInvalidate();
|
||||
}
|
||||
|
||||
void onFingerUp() {
|
||||
mIsFingerDown = false;
|
||||
mSensorPaint.setStyle(Paint.Style.STROKE);
|
||||
invalidate();
|
||||
postInvalidate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user