Merge "Fix the illumination dot getting stuck"

This commit is contained in:
TreeHugger Robot
2020-07-14 07:29:29 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -156,6 +156,7 @@ class UdfpsController {
}
private void hideUdfpsOverlay() {
onFingerUp();
mHandler.post(() -> {
Log.v(TAG, "hideUdfpsOverlay | removing window");
if (mIsOverlayShowing) {

View File

@@ -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();
}
}