Remove unreachable code.

This commit is contained in:
Johannes Mockenhaupt 2017-11-11 17:29:39 +01:00
parent a9970a9efe
commit 9804f004f5
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -132,10 +132,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
// last connection
String minAgo = DateUtil.minAgo(plugin.getPump().lastSuccessfulConnection);
if (plugin.getPump().lastSuccessfulConnection == 0) {
lastConnectionView.setText(R.string.combo_pump_never_connected);
lastConnectionView.setTextColor(Color.YELLOW);
} else if (plugin.getPump().lastSuccessfulConnection + 60 * 1000 > System.currentTimeMillis()) {
if (plugin.getPump().lastSuccessfulConnection + 60 * 1000 > System.currentTimeMillis()) {
lastConnectionView.setText(R.string.combo_pump_connected_now);
lastConnectionView.setTextColor(Color.WHITE);
} else if (plugin.getPump().lastSuccessfulConnection < System.currentTimeMillis() - 30 * 60 * 1000) {