Extract some strings for localization

// FREEBIE
fork-5.53.8
Moxie Marlinspike 2017-02-20 13:59:23 -08:00
rodzic 1669731329
commit b27d829013
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -251,6 +251,10 @@
<string name="DeviceListItem_last_active_s">Last active %s</string>
<string name="DeviceListItem_today">Today</string>
<!-- DozeReminder -->
<string name="DozeReminder_optimize_for_missing_play_services">Optimize for missing Play Services</string>
<string name="DozeReminder_this_device_does_not_support_play_services_tap_to_disable_system_battery">This device does not support Play Services. Tap to disable system battery optimizations that prevent Signal from retrieving messages while inactive.</string>
<!-- ShareActivity -->
<string name="ShareActivity_share_with">Share with</string>

Wyświetl plik

@ -11,14 +11,15 @@ import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
import android.view.View;
import org.thoughtcrime.securesms.R;
import org.thoughtcrime.securesms.util.TextSecurePreferences;
public class DozeReminder extends Reminder {
@RequiresApi(api = Build.VERSION_CODES.M)
public DozeReminder(@NonNull final Context context) {
super("Optimize for missing Play Services",
"This device does not support Play Services. Tap to disable system battery optimizations that prevent Signal from retrieving messages while inactive.");
super(context.getString(R.string.DozeReminder_optimize_for_missing_play_services),
context.getString(R.string.DozeReminder_this_device_does_not_support_play_services_tap_to_disable_system_battery));
setOkListener(new View.OnClickListener() {
@Override