summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@google.com>2016-03-08 22:18:45 +0100
committerPrashant Malani <pmalani@google.com>2016-03-08 23:37:49 +0100
commit7d9fd96dc99a6008979811e36bb06f3afad18508 (patch)
tree8f428bb0debeb61b70cfbf5e9b43b58cf5935465 /wear_ui.cpp
parentMerge "Restore labels on /postinstall during recovery." into nyc-dev (diff)
downloadandroid_bootable_recovery-7d9fd96dc99a6008979811e36bb06f3afad18508.tar
android_bootable_recovery-7d9fd96dc99a6008979811e36bb06f3afad18508.tar.gz
android_bootable_recovery-7d9fd96dc99a6008979811e36bb06f3afad18508.tar.bz2
android_bootable_recovery-7d9fd96dc99a6008979811e36bb06f3afad18508.tar.lz
android_bootable_recovery-7d9fd96dc99a6008979811e36bb06f3afad18508.tar.xz
android_bootable_recovery-7d9fd96dc99a6008979811e36bb06f3afad18508.tar.zst
android_bootable_recovery-7d9fd96dc99a6008979811e36bb06f3afad18508.zip
Diffstat (limited to '')
-rw-r--r--wear_ui.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index 8a57cfffa..65bcd8494 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -16,9 +16,7 @@
#include <errno.h>
#include <fcntl.h>
-#include <pthread.h>
#include <stdarg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
@@ -31,9 +29,7 @@
#include "common.h"
#include "device.h"
-#include "minui/minui.h"
#include "wear_ui.h"
-#include "ui.h"
#include "cutils/properties.h"
#include "android-base/strings.h"
#include "android-base/stringprintf.h"
@@ -370,29 +366,6 @@ void WearRecoveryUI::Init()
RecoveryUI::Init();
}
-void WearRecoveryUI::SetLocale(const char* locale) {
- if (locale) {
- char* lang = strdup(locale);
- for (char* p = lang; *p; ++p) {
- if (*p == '_') {
- *p = '\0';
- break;
- }
- }
-
- // A bit cheesy: keep an explicit list of supported languages
- // that are RTL.
- if (strcmp(lang, "ar") == 0 || // Arabic
- strcmp(lang, "fa") == 0 || // Persian (Farsi)
- strcmp(lang, "he") == 0 || // Hebrew (new language code)
- strcmp(lang, "iw") == 0 || // Hebrew (old language code)
- strcmp(lang, "ur") == 0) { // Urdu
- rtl_locale = true;
- }
- free(lang);
- }
-}
-
void WearRecoveryUI::SetBackground(Icon icon)
{
pthread_mutex_lock(&updateMutex);