mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-21 22:39:12 +00:00
Fix an issue where advanced fields were disabled inadvertently
This commit is contained in:
parent
085e8e51dc
commit
c7ef10367f
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue