Fix the illumination dot getting stuck
Bug: 158135499 Test: manual on device Change-Id: Ie0e063e67940a178218272078049e202e233bb01
This commit is contained in:
@@ -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