Merge pull request #1308 from michaelschattgen/fix/ui-inconsistencies

Fix a couple UI inconsistencies
This commit is contained in:
Alexander Bakker 2024-03-16 11:28:02 +01:00 committed by GitHub
commit 2b2cac1ada
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -375,6 +375,7 @@ public class EntryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
}
sortShownEntries();
checkPeriodUniformity();
_view.onListChange();
notifyDataSetChanged();
}
@ -669,6 +670,10 @@ public class EntryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
return -1;
}
if (infos.size() == 1) {
return infos.get(0).getPeriod();
}
Map<Integer, Integer> occurrences = new HashMap<>();
for (TotpInfo info : infos) {
int period = info.getPeriod();