From 2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5 Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Wed, 2 May 2018 17:15:03 -0700 Subject: recovery: Get UI and locale from device. This removes some reliance on the global locale and ui variables. Test: Recovery works Bug: 78793464 Change-Id: I78f1a2b321f5d50aa58b10735a73ae137283353a --- ui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 35cc36e70..f8677902e 100644 --- a/ui.h +++ b/ui.h @@ -57,6 +57,8 @@ class RecoveryUI { // the given locale. Returns true on success. virtual bool Init(const std::string& locale); + virtual std::string GetLocale() = 0; + // Shows a stage indicator. Called immediately after Init(). virtual void SetStage(int current, int max) = 0; -- cgit v1.2.3