diff options
| author | 2021-04-21 09:06:14 +0000 | |
|---|---|---|
| committer | 2021-04-21 09:06:14 +0000 | |
| commit | 10e844df412736a6c72eadd68dbe596aa6e6dd64 (patch) | |
| tree | bd561ab6062a65042f4863793dbc2e64dacc5b92 /cmds/bootanimation/BootAnimation.h | |
| parent | 8000286ede045ea99ae9efe2b1e8fdad1c0a605d (diff) | |
| parent | 87c254de0ea13e2ac250d6c69309b24da7e73edc (diff) | |
Merge "bootanimation: ensure that if a percent is shown, we'll get to 100." am: 87c254de0e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681127
Change-Id: I97fc1c141f319436ef54beb11f0e0d265cbadc7c
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
| -rw-r--r-- | cmds/bootanimation/BootAnimation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h index b52222c799b0..1b47fefc6866 100644 --- a/cmds/bootanimation/BootAnimation.h +++ b/cmds/bootanimation/BootAnimation.h @@ -187,7 +187,8 @@ private: void resizeSurface(int newWidth, int newHeight); void projectSceneToWindow(); - bool shouldStopPlayingPart(const Animation::Part& part, int fadedFramesCount); + bool shouldStopPlayingPart(const Animation::Part& part, int fadedFramesCount, + int lastDisplayedProgress); void checkExit(); void handleViewport(nsecs_t timestep); |