From bd167cbb1719250dc6713bc00dda20e9c832b16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20B=C3=BCcher?= Date: Tue, 25 Feb 2014 11:38:31 +0100 Subject: [PATCH] Fix missing localozation strings for custom LED blink pattern. --- res/layout/led_pattern_dialog.xml | 4 ++-- res/values/strings.xml | 4 ++++ .../securesms/preferences/LedBlinkPatternListPreference.java | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/res/layout/led_pattern_dialog.xml b/res/layout/led_pattern_dialog.xml index 2f3ec5f9ba..b02d286936 100644 --- a/res/layout/led_pattern_dialog.xml +++ b/res/layout/led_pattern_dialog.xml @@ -29,7 +29,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/SeekBarOnLabel" - android:text="On For:" + android:text="@string/preferences__pref_led_blink_custom_pattern_on_for" android:paddingTop="5sp" /> Display message notifications in status bar LED color LED blink pattern + Set custom LED Blink Pattern + On For: + Off For: + Custom LED blink pattern set! Sound Change notification sound In-thread notifications diff --git a/src/org/thoughtcrime/securesms/preferences/LedBlinkPatternListPreference.java b/src/org/thoughtcrime/securesms/preferences/LedBlinkPatternListPreference.java index 69eb286eea..327b3b3fbd 100644 --- a/src/org/thoughtcrime/securesms/preferences/LedBlinkPatternListPreference.java +++ b/src/org/thoughtcrime/securesms/preferences/LedBlinkPatternListPreference.java @@ -82,7 +82,7 @@ public class LedBlinkPatternListPreference extends ListPreference implements OnS private void initializeDialog(View view) { AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setIcon(android.R.drawable.ic_dialog_info); - builder.setTitle("Set Custom LED Blink Pattern"); + builder.setTitle(R.string.preferences__pref_led_blink_custom_pattern_title); builder.setView(view); builder.setOnCancelListener(new CustomDialogCancelListener()); builder.setNegativeButton(android.R.string.cancel, new CustomDialogCancelListener()); @@ -154,7 +154,7 @@ public class LedBlinkPatternListPreference extends ListPreference implements OnS dialogInProgress = false; TextSecurePreferences.setNotificationLedPatternCustom(context, pattern); - Toast.makeText(context, "Custom LED blink pattern set!", Toast.LENGTH_LONG).show(); + Toast.makeText(context, R.string.preferences__pref_led_blink_custom_pattern_set, Toast.LENGTH_LONG).show(); } }