Fix an issue where advanced fields were disabled inadvertently

This commit is contained in:
Alexander Bakker 2021-02-17 12:59:59 +01:00
parent 085e8e51dc
commit c7ef10367f

View file

@ -263,10 +263,10 @@ public class EditEntryActivity extends AegisActivity {
}
private void updateAdvancedFieldStatus(String otpType) {
boolean isSteam = otpType.equals(SteamInfo.ID);
_textDigitsLayout.setEnabled(!isSteam);
_textPeriodCounterLayout.setEnabled(!isSteam);
_dropdownAlgoLayout.setEnabled(!isSteam);
boolean enabled = !otpType.equals(SteamInfo.ID) && (!_isNew || _isManual);
_textDigitsLayout.setEnabled(enabled);
_textPeriodCounterLayout.setEnabled(enabled);
_dropdownAlgoLayout.setEnabled(enabled);
}
private void setGroup(String groupName) {