don't show User oprtions if firmware is OLD

This commit is contained in:
Roumen Georgiev 2018-08-22 14:04:57 +03:00 committed by GitHub
parent 653a98fd5b
commit ca96791059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,9 +273,9 @@ public class DanaRFragment extends SubscriberFragment {
queueView.setText(status);
}
}
//hide user options button if not an RS pump
//hide user options button if not an RS pump or old firmware
boolean isKorean = DanaRKoreanPlugin.getPlugin().isEnabled(PluginType.PUMP);
if (isKorean) {
if (isKorean || firmwareView.getText() == "OLD") {
danar_user_options.setVisibility(View.GONE);
}
}