From 39c4918a404a9c8119aac5086014df26c2a71664 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 7 May 2018 22:50:33 -0700 Subject: screen_ui: Drop the parameter in CheckBackgroundTextImages. ScreenRecoveryUI already has the info in locale_. Also when showing "Current locale: X/Y" on screen, use 1-based index for X, so that we have 1 <= X <= Y. Test: Build anf flash recovery image on aosp_bullhead-userdebug. Choose `Run locale test` from UI. Change-Id: I5dd4de82e63890ddf755f4e23cd2290ad5d50ece --- recovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recovery.cpp') diff --git a/recovery.cpp b/recovery.cpp index 01dce0780..6aceb2d61 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -897,7 +897,7 @@ static Device::BuiltinAction prompt_and_wait(Device* device, int status) { case Device::RUN_LOCALE_TEST: { ScreenRecoveryUI* screen_ui = static_cast(ui); - screen_ui->CheckBackgroundTextImages(screen_ui->GetLocale()); + screen_ui->CheckBackgroundTextImages(); break; } case Device::MOUNT_SYSTEM: -- cgit v1.2.3