Merge pull request #1377 from PoweRGbg/patch-2

also don't show UserOptions for pumps with code 3
This commit is contained in:
Milos Kozak 2018-08-30 12:49:55 +02:00 committed by GitHub
commit 39358ac804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,8 +274,9 @@ public class DanaRFragment extends SubscriberFragment {
}
}
//hide user options button if not an RS pump or old firmware
// also excludes pump with model 03 because of untested error
boolean isKorean = DanaRKoreanPlugin.getPlugin().isEnabled(PluginType.PUMP);
if (isKorean || firmwareView.getText() == "OLD") {
if (isKorean || firmwareView.getText() == "OLD" || pump.model == 3) {
danar_user_options.setVisibility(View.GONE);
}
}