aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorElliott Hughes2016-04-15 10:57:55 -0500
committerandroid-build-merger2016-04-15 10:57:55 -0500
commit6fa5fa91bf1439e6c5070f3aee9b447f995882c1 (patch)
tree96292b5f3b47569444b09223af91d48519434267 /tools
parent6e08bff22b6b9019c72422e1902201d7cb4397b5 (diff)
parent70ae70b81e452ce8a85dfbb184786c02a9072c23 (diff)
downloadplatform-bootable-recovery-6fa5fa91bf1439e6c5070f3aee9b447f995882c1.tar.gz
platform-bootable-recovery-6fa5fa91bf1439e6c5070f3aee9b447f995882c1.tar.xz
platform-bootable-recovery-6fa5fa91bf1439e6c5070f3aee9b447f995882c1.zip
Explicitly set the font face and color.
am: 70ae70b * commit '70ae70b81e452ce8a85dfbb184786c02a9072c23': Explicitly set the font face and color. Change-Id: I94011b0f4df228e6cdfe4c095542839abb689a74
Diffstat (limited to 'tools')
-rw-r--r--tools/recovery_l10n/res/layout/main.xml4
-rw-r--r--tools/recovery_l10n/src/com/android/recovery_l10n/Main.java9
2 files changed, 6 insertions, 7 deletions
diff --git a/tools/recovery_l10n/res/layout/main.xml b/tools/recovery_l10n/res/layout/main.xml
index 0900b110..05a16e1e 100644
--- a/tools/recovery_l10n/res/layout/main.xml
+++ b/tools/recovery_l10n/res/layout/main.xml
@@ -19,7 +19,9 @@
19 <TextView android:id="@+id/text" 19 <TextView android:id="@+id/text"
20 android:layout_width="wrap_content" 20 android:layout_width="wrap_content"
21 android:layout_height="wrap_content" 21 android:layout_height="wrap_content"
22 android:textColor="#ffffffff" 22 android:fontFamily="sans-serif-medium"
23 android:textColor="#fff5f5f5"
24 android:textSize="14sp"
23 android:background="#ff000000" 25 android:background="#ff000000"
24 android:maxWidth="480px" 26 android:maxWidth="480px"
25 android:gravity="center" 27 android:gravity="center"
diff --git a/tools/recovery_l10n/src/com/android/recovery_l10n/Main.java b/tools/recovery_l10n/src/com/android/recovery_l10n/Main.java
index 3f2bebe6..817a3ad7 100644
--- a/tools/recovery_l10n/src/com/android/recovery_l10n/Main.java
+++ b/tools/recovery_l10n/src/com/android/recovery_l10n/Main.java
@@ -149,12 +149,9 @@ public class Main extends Activity {
149 String[] localeNames = getAssets().getLocales(); 149 String[] localeNames = getAssets().getLocales();
150 Arrays.sort(localeNames); 150 Arrays.sort(localeNames);
151 ArrayList<Locale> locales = new ArrayList<Locale>(); 151 ArrayList<Locale> locales = new ArrayList<Locale>();
152 for (String ln : localeNames) { 152 for (String localeName : localeNames) {
153 int u = ln.indexOf('_'); 153 Log.i(TAG, "locale = " + localeName);
154 if (u >= 0) { 154 locales.add(Locale.forLanguageTag(localeName));
155 Log.i(TAG, "locale = " + ln);
156 locales.add(new Locale(ln.substring(0, u), ln.substring(u+1)));
157 }
158 } 155 }
159 156
160 final Runnable seq = buildSequence(locales.toArray(new Locale[0])); 157 final Runnable seq = buildSequence(locales.toArray(new Locale[0]));