some more gs

This commit is contained in:
AdrianLxM 2018-05-02 13:12:08 +02:00
parent 7b6402de09
commit 73b41a7162
2 changed files with 5 additions and 5 deletions

View file

@ -161,7 +161,7 @@ class HistoryIntentAdapter {
Date date = getDateExtra(intent, HistoryBroadcast.EXTRA_EVENT_TIME); Date date = getDateExtra(intent, HistoryBroadcast.EXTRA_EVENT_TIME);
String alertType = intent.getStringExtra(HistoryBroadcast.EXTRA_ALERT_TYPE); String alertType = intent.getStringExtra(HistoryBroadcast.EXTRA_ALERT_TYPE);
if (MainApp.getDbHelper().getCareportalEventFromTimestamp(date.getTime()) != null) return; if (MainApp.getDbHelper().getCareportalEventFromTimestamp(date.getTime()) != null) return;
logNote(date, MainApp.instance().getString(getAlertText(alertType))); logNote(date, MainApp.gs(getAlertText(alertType)));
} }
} }
@ -171,13 +171,13 @@ class HistoryIntentAdapter {
String newStatus = intent.getStringExtra(HistoryBroadcast.EXTRA_NEW_STATUS); String newStatus = intent.getStringExtra(HistoryBroadcast.EXTRA_NEW_STATUS);
switch (newStatus) { switch (newStatus) {
case "STARTED": case "STARTED":
logNote(newStatusTime, MainApp.instance().getString(R.string.pump_started)); logNote(newStatusTime, MainApp.gs(R.string.pump_started));
break; break;
case "STOPPED": case "STOPPED":
logNote(newStatusTime, MainApp.instance().getString(R.string.pump_stopped)); logNote(newStatusTime, MainApp.gs(R.string.pump_stopped));
break; break;
case "PAUSED": case "PAUSED":
logNote(newStatusTime, MainApp.instance().getString(R.string.pump_paused)); logNote(newStatusTime, MainApp.gs(R.string.pump_paused));
break; break;
} }
} }

View file

@ -131,7 +131,7 @@ public class HistoryReceiver {
@Override @Override
public String toString() { public String toString() {
return MainApp.instance().getString(string_id); return MainApp.gs(string_id);
} }
} }