recovery: Make wear recovery more customizable.

am: 5b00110e3d

Change-Id: I88ab75e875cea8813ab4bdc9f099c31609ace6fd
This commit is contained in:
Alain Vongsouvanh 2016-06-08 15:10:54 +00:00 committed by android-build-merger
commit 6aa6ddb3c5
2 changed files with 4 additions and 3 deletions

View file

@ -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 {

View file

@ -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;