aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-02-01 01:03:10 -0600
committerTao Bao2017-09-11 14:19:32 -0500
commitefb49add97cfda58c417ea4052cb6afb84c16c03 (patch)
tree2d27057a3a3bba0a9560bcded0b4eae001154c2b /screen_ui.h
parent568644197fc05174e1c76dccba25ce30b2a83c4a (diff)
downloadplatform-bootable-recovery-efb49add97cfda58c417ea4052cb6afb84c16c03.tar.gz
platform-bootable-recovery-efb49add97cfda58c417ea4052cb6afb84c16c03.tar.xz
platform-bootable-recovery-efb49add97cfda58c417ea4052cb6afb84c16c03.zip
ui: Move locale and friends into ScreenRecoveryUI class.
Localized texts only make sense on devices with screens. Test: Run fake OTA on angler; check the on-screen texts. Change-Id: I3a644294c8b1f2056cfb78b2d61a598b8ddf2acf
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 0d7b9e86..eaac2a6e 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -191,7 +191,14 @@ class ScreenRecoveryUI : public RecoveryUI {
191 int char_width_; 191 int char_width_;
192 int char_height_; 192 int char_height_;
193 193
194 // The locale that's used to show the rendered texts.
195 std::string locale_;
196 bool rtl_locale_;
197
194 pthread_mutex_t updateMutex; 198 pthread_mutex_t updateMutex;
199
200 private:
201 void SetLocale(const std::string&);
195}; 202};
196 203
197#endif // RECOVERY_UI_H 204#endif // RECOVERY_UI_H