also don't show UserOptions for pumps with code 3

until debugged
This commit is contained in:
Roumen Georgiev 2018-08-30 12:08:45 +03:00 committed by GitHub
parent 063ead4c17
commit c3e1dff345
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);
}
}