Merge pull request #1580 from triplem/suspend_fix

fix duplication of resume and reconnect
This commit is contained in:
Milos Kozak 2018-12-11 10:07:04 +01:00 committed by GitHub
commit e0a592f968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -459,7 +459,9 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
menu.add(MainApp.gs(R.string.suspendloopfor3h));
menu.add(MainApp.gs(R.string.suspendloopfor10h));
} else {
menu.add(MainApp.gs(R.string.resume));
if (!loopPlugin.isDisconnected()) {
menu.add(MainApp.gs(R.string.resume));
}
}
}