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
This commit is contained in:
Jerry Zhang
2018-05-02 17:15:03 -07:00
committed by Tao Bao
parent 5285c27bf4
commit 2dea53ef2b
6 changed files with 23 additions and 5 deletions
+4
View File
@@ -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, decltype(&closedir)> dir(opendir("/res/images"), closedir);
dirent* de;