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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user