From 9ac8d76c11c99d325d1f345231fab3c517810fdf Mon Sep 17 00:00:00 2001 From: Jack Wu Date: Thu, 16 Mar 2023 10:58:56 +0800 Subject: [PATCH] charger: fix show qustion mark when start to draw UI skip drawing UI for max 5 seconds if battery level is not ready. Bug: 265896703 Test: confirm offmode charge UI behavior Change-Id: I11ae3419749be8d3c1d8d8e61eb4446d276ac1ad Signed-off-by: Jack Wu --- healthd/healthd_mode_charger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp index 1ce174bf4..a0527e8e3 100644 --- a/healthd/healthd_mode_charger.cpp +++ b/healthd/healthd_mode_charger.cpp @@ -88,7 +88,7 @@ char* locale; #define POWER_ON_KEY_TIME (2 * MSEC_PER_SEC) #define UNPLUGGED_SHUTDOWN_TIME (10 * MSEC_PER_SEC) #define UNPLUGGED_DISPLAY_TIME (3 * MSEC_PER_SEC) -#define MAX_BATT_LEVEL_WAIT_TIME (3 * MSEC_PER_SEC) +#define MAX_BATT_LEVEL_WAIT_TIME (5 * MSEC_PER_SEC) #define UNPLUGGED_SHUTDOWN_TIME_PROP "ro.product.charger.unplugged_shutdown_time" #define LAST_KMSG_MAX_SZ (32 * 1024)