Fix getting resources string in fragment.

This commit is contained in:
Johannes Mockenhaupt 2017-11-03 21:41:20 +01:00
parent f9a7d6fe20
commit 142878a22b
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -142,7 +142,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
lastConnectionView.setText(getString(R.string.combo_no_pump_connection, minAgo));
lastConnectionView.setTextColor(Color.RED);
} else if (plugin.getPump().lastConnectionAttempt > plugin.getPump().lastSuccessfulConnection) {
lastConnectionView.setText(timeAgo + "\n" + R.string.combo_connect_attempt_failed);
lastConnectionView.setText(timeAgo + "\n" + getString(R.string.combo_connect_attempt_failed));
lastConnectionView.setTextColor(Color.YELLOW);
} else {
lastConnectionView.setText(timeAgo);