summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-04 06:53:11 +0200
committerTao Bao <tbao@google.com>2018-05-09 00:53:56 +0200
commit6cd816859e462e8741ced8dc24c00b7cd8304e2a (patch)
treeb4e2e9919eb1d0ed11c6dd330d42ffacd71b3db1 /screen_ui.cpp
parentMerge "screen_ui: Drop the parameter in CheckBackgroundTextImages." (diff)
downloadandroid_bootable_recovery-6cd816859e462e8741ced8dc24c00b7cd8304e2a.tar
android_bootable_recovery-6cd816859e462e8741ced8dc24c00b7cd8304e2a.tar.gz
android_bootable_recovery-6cd816859e462e8741ced8dc24c00b7cd8304e2a.tar.bz2
android_bootable_recovery-6cd816859e462e8741ced8dc24c00b7cd8304e2a.tar.lz
android_bootable_recovery-6cd816859e462e8741ced8dc24c00b7cd8304e2a.tar.xz
android_bootable_recovery-6cd816859e462e8741ced8dc24c00b7cd8304e2a.tar.zst
android_bootable_recovery-6cd816859e462e8741ced8dc24c00b7cd8304e2a.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 90e0e30af..9198073df 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).
@@ -754,7 +755,8 @@ std::string ScreenRecoveryUI::GetLocale() {
}
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;