Skip to content

Commit bd167cb

Browse files
author
Tim Bücher
committed
Fix missing localozation strings for custom LED blink pattern.
1 parent a0aaa7d commit bd167cb

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

res/layout/led_pattern_dialog.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
android:layout_width="wrap_content"
3030
android:layout_height="wrap_content"
3131
android:id="@+id/SeekBarOnLabel"
32-
android:text="On For:"
32+
android:text="@string/preferences__pref_led_blink_custom_pattern_on_for"
3333
android:paddingTop="5sp" />
3434
<TextView
3535
android:id="@+id/SeekBarOnMsLabel"
@@ -65,7 +65,7 @@
6565
android:layout_width="wrap_content"
6666
android:layout_height="wrap_content"
6767
android:id="@+id/SeekBarOffLabel"
68-
android:text="Off For:"
68+
android:text="@string/preferences__pref_led_blink_custom_pattern_off_for"
6969
android:paddingTop="5sp" />
7070
<TextView
7171
android:id="@+id/SeekBarOffMsLabel"

res/values/strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,10 @@
644644
<string name="preferences__display_message_notifications_in_status_bar">Display message notifications in status bar</string>
645645
<string name="preferences__led_color">LED color</string>
646646
<string name="preferences__pref_led_blink_title">LED blink pattern</string>
647+
<string name="preferences__pref_led_blink_custom_pattern_title">Set custom LED Blink Pattern</string>
648+
<string name="preferences__pref_led_blink_custom_pattern_on_for">On For:</string>
649+
<string name="preferences__pref_led_blink_custom_pattern_off_for">Off For:</string>
650+
<string name="preferences__pref_led_blink_custom_pattern_set">Custom LED blink pattern set!</string>
647651
<string name="preferences__sound">Sound</string>
648652
<string name="preferences__change_notification_sound">Change notification sound</string>
649653
<string name="preferences__inthread_notifications">In-thread notifications</string>

src/org/thoughtcrime/securesms/preferences/LedBlinkPatternListPreference.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private void initializeSeekBarValues() {
8282
private void initializeDialog(View view) {
8383
AlertDialog.Builder builder = new AlertDialog.Builder(context);
8484
builder.setIcon(android.R.drawable.ic_dialog_info);
85-
builder.setTitle("Set Custom LED Blink Pattern");
85+
builder.setTitle(R.string.preferences__pref_led_blink_custom_pattern_title);
8686
builder.setView(view);
8787
builder.setOnCancelListener(new CustomDialogCancelListener());
8888
builder.setNegativeButton(android.R.string.cancel, new CustomDialogCancelListener());
@@ -154,7 +154,7 @@ public void onClick(DialogInterface dialog, int which) {
154154
dialogInProgress = false;
155155

156156
TextSecurePreferences.setNotificationLedPatternCustom(context, pattern);
157-
Toast.makeText(context, "Custom LED blink pattern set!", Toast.LENGTH_LONG).show();
157+
Toast.makeText(context, R.string.preferences__pref_led_blink_custom_pattern_set, Toast.LENGTH_LONG).show();
158158
}
159159

160160
}

0 commit comments

Comments
 (0)