diff options
author | Tao Bao <tbao@google.com> | 2018-05-11 22:06:22 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-11 22:06:22 +0200 |
commit | 8c6f699b368598907bb950ca68a732bc44470601 (patch) | |
tree | b2582f367c622015c1df8de96bf3ca618c7967e2 /screen_ui.cpp | |
parent | Merge "recovery: Configure device menu based on runtime info." (diff) | |
parent | tests: Add tests for ScreenRecoveryUI. (diff) | |
download | android_bootable_recovery-8c6f699b368598907bb950ca68a732bc44470601.tar android_bootable_recovery-8c6f699b368598907bb950ca68a732bc44470601.tar.gz android_bootable_recovery-8c6f699b368598907bb950ca68a732bc44470601.tar.bz2 android_bootable_recovery-8c6f699b368598907bb950ca68a732bc44470601.tar.lz android_bootable_recovery-8c6f699b368598907bb950ca68a732bc44470601.tar.xz android_bootable_recovery-8c6f699b368598907bb950ca68a732bc44470601.tar.zst android_bootable_recovery-8c6f699b368598907bb950ca68a732bc44470601.zip |
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r-- | screen_ui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index f5dadf7f0..4ea458f1d 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -41,9 +41,10 @@ #include <android-base/properties.h> #include <android-base/stringprintf.h> #include <android-base/strings.h> -#include <minui/minui.h> #include "device.h" +#include "minui/minui.h" +#include "otautil/paths.h" #include "ui.h" // Return the current time as a double (including fractions of a second). @@ -756,7 +757,8 @@ std::string ScreenRecoveryUI::GetLocale() const { } void ScreenRecoveryUI::LoadAnimation() { - std::unique_ptr<DIR, decltype(&closedir)> dir(opendir("/res/images"), closedir); + std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(Paths::Get().resource_dir().c_str()), + closedir); dirent* de; std::vector<std::string> intro_frame_names; std::vector<std::string> loop_frame_names; |