Merge pull request #1357 from PoweRGbg/patch-3

don't show User oprtions if firmware is OLD
This commit is contained in:
Milos Kozak 2018-08-23 17:33:44 +02:00 committed by GitHub
commit fa4934ba0e
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);
}
}