Add String for Bolus Progress / Cancel Button for translation

This commit is contained in:
Philoul 2021-01-15 00:27:05 +01:00
parent 4c9052b29a
commit 4d4e0ffab3
2 changed files with 7 additions and 3 deletions

View file

@ -37,6 +37,7 @@ import com.google.android.gms.wearable.WearableListenerService;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import info.nightscout.androidaps.aaps;
import info.nightscout.androidaps.R;
import info.nightscout.androidaps.interaction.AAPSPreferences;
import info.nightscout.androidaps.interaction.actions.AcceptActivity;
@ -635,13 +636,13 @@ public class ListenerService extends WearableListenerService implements GoogleAp
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(this, AAPS_NOTIFY_CHANNEL_ID_BOLUSPROGRESS)
.setSmallIcon(R.drawable.ic_icon)
.setContentTitle("Bolus Progress")
.setContentTitle(aaps.gs(R.string.bolus_progress))
.setContentText(progresspercent + "% - " + progresstatus)
.setSubText("press to cancel")
.setSubText(aaps.gs(R.string.press_to_cancel))
.setContentIntent(cancelPendingIntent)
.setPriority(NotificationCompat.PRIORITY_MAX)
.setVibrate(vibratePattern)
.addAction(R.drawable.ic_cancel, "CANCEL BOLUS", cancelPendingIntent);
.addAction(R.drawable.ic_cancel, aaps.gs(R.string.cancel_bolus), cancelPendingIntent);
NotificationManagerCompat notificationManager =
NotificationManagerCompat.from(this);

View file

@ -100,6 +100,9 @@
<string name="action_timeshift">timeshift</string>
<string name="action_bolus">bolus</string>
<string name="bolus_progress">Bolus Progress</string>
<string name="press_to_cancel">press to cancel</string>
<string name="cancel_bolus">CANCEL BOLUS</string>
<string name="status_pump">Pump</string>
<string name="status_loop">Loop</string>