Skip to content

Commit bb747f9

Browse files
committed
Screen-Off-FOD: Run fod animations for screen off fod too
- Because why not Signed-off-by: PMS22 <pratham220399@gmail.com> Change-Id: If640c92f16fd7e87571b401ffafed4c3fe7910f8
1 parent 70d5179 commit bb747f9

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,16 @@ public void onFingerDown() {
113113
if (mFodGestureEnable && !mScreenTurnedOn) {
114114
if (mDozeEnabled) {
115115
mHandler.post(() -> mContext.sendBroadcast(new Intent(DOZE_INTENT)));
116+
if (mIsRecognizingAnimEnabled) {
117+
mHandler.post(() -> mFODAnimation.showFODanimation());
118+
}
116119
} else {
117120
mWakeLock.acquire(3000);
118121
mHandler.post(() -> mPowerManager.wakeUp(SystemClock.uptimeMillis(),
119122
PowerManager.WAKE_REASON_GESTURE, FODCircleView.class.getSimpleName()));
123+
if (mIsRecognizingAnimEnabled) {
124+
mHandler.post(() -> mFODAnimation.showFODanimation());
125+
}
120126
}
121127
mPressPending = true;
122128
} else {
@@ -127,6 +133,10 @@ public void onFingerDown() {
127133
@Override
128134
public void onFingerUp() {
129135
mHandler.post(() -> hideCircle());
136+
if (mIsRecognizingAnimEnabled) {
137+
mFODAnimation.setAnimationKeyguard(false);
138+
mHandler.post(() -> mFODAnimation.hideFODanimation());
139+
}
130140
if (mPressPending) {
131141
mPressPending = false;
132142
}
@@ -194,6 +204,11 @@ public void onScreenTurnedOn() {
194204
mHandler.post(() -> showCircle());
195205
mPressPending = false;
196206
}
207+
208+
if (mIsRecognizingAnimEnabled) {
209+
mFODAnimation.setAnimationKeyguard(false);
210+
mHandler.post(() -> mFODAnimation.hideFODanimation());
211+
}
197212
mScreenTurnedOn = true;
198213
}
199214

0 commit comments

Comments
 (0)