diff options
author | Tao Bao <tbao@google.com> | 2018-05-11 22:22:26 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-11 22:22:26 +0200 |
commit | e0871294aa7996d6d53b53c044cc27fc1ff64288 (patch) | |
tree | 0f6be2c5cbff66f580ba62881f31de07aecbdad6 /screen_ui.cpp | |
parent | Merge "recovery: Configure device menu based on runtime info." am: e498ef2f03 (diff) | |
parent | Merge "tests: Add tests for ScreenRecoveryUI." (diff) | |
download | android_bootable_recovery-e0871294aa7996d6d53b53c044cc27fc1ff64288.tar android_bootable_recovery-e0871294aa7996d6d53b53c044cc27fc1ff64288.tar.gz android_bootable_recovery-e0871294aa7996d6d53b53c044cc27fc1ff64288.tar.bz2 android_bootable_recovery-e0871294aa7996d6d53b53c044cc27fc1ff64288.tar.lz android_bootable_recovery-e0871294aa7996d6d53b53c044cc27fc1ff64288.tar.xz android_bootable_recovery-e0871294aa7996d6d53b53c044cc27fc1ff64288.tar.zst android_bootable_recovery-e0871294aa7996d6d53b53c044cc27fc1ff64288.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; |