From 2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5 Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Wed, 2 May 2018 17:15:03 -0700 Subject: recovery: Get UI and locale from device. This removes some reliance on the global locale and ui variables. Test: Recovery works Bug: 78793464 Change-Id: I78f1a2b321f5d50aa58b10735a73ae137283353a --- screen_ui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'screen_ui.cpp') diff --git a/screen_ui.cpp b/screen_ui.cpp index 7ae81e55f..4a1a5b99c 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -748,6 +748,10 @@ bool ScreenRecoveryUI::Init(const std::string& locale) { return true; } +std::string ScreenRecoveryUI::GetLocale() { + return locale_; +} + void ScreenRecoveryUI::LoadAnimation() { std::unique_ptr dir(opendir("/res/images"), closedir); dirent* de; -- cgit v1.2.3