mirror of
https://github.com/meizu-m86/twrp_multirom_m86
synced 2025-11-03 21:45:40 +08:00
recovery: Make wear recovery more customizable.
Making animation_fps protected and adding support for 0 frames intro. BUG: 29085786 Change-Id: I07b44570022bad89661973178d453592c01f3f10
This commit is contained in:
@@ -288,7 +288,7 @@ void WearRecoveryUI::progress_loop() {
|
||||
if ((currentIcon == INSTALLING_UPDATE || currentIcon == ERASING)
|
||||
&& !show_text) {
|
||||
if (!intro_done) {
|
||||
if (current_frame == intro_frames - 1) {
|
||||
if (current_frame >= intro_frames - 1) {
|
||||
intro_done = true;
|
||||
current_frame = 0;
|
||||
} else {
|
||||
|
||||
@@ -79,6 +79,9 @@ class WearRecoveryUI : public RecoveryUI {
|
||||
int intro_frames;
|
||||
int loop_frames;
|
||||
|
||||
// animation's fps (default: 30)
|
||||
int animation_fps;
|
||||
|
||||
private:
|
||||
Icon currentIcon;
|
||||
|
||||
@@ -86,8 +89,6 @@ class WearRecoveryUI : public RecoveryUI {
|
||||
|
||||
int current_frame;
|
||||
|
||||
int animation_fps;
|
||||
|
||||
bool rtl_locale;
|
||||
|
||||
pthread_mutex_t updateMutex;
|
||||
|
||||
Reference in New Issue
Block a user