summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-11 22:06:22 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-11 22:06:22 +0200
commit8c6f699b368598907bb950ca68a732bc44470601 (patch)
treeb2582f367c622015c1df8de96bf3ca618c7967e2 /screen_ui.cpp
parentMerge "recovery: Configure device menu based on runtime info." (diff)
parenttests: Add tests for ScreenRecoveryUI. (diff)
downloadandroid_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.cpp6
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;