mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Merge pull request #1308 from michaelschattgen/fix/ui-inconsistencies
Fix a couple UI inconsistencies
This commit is contained in:
commit
2b2cac1ada
2 changed files with 8 additions and 2 deletions
|
@ -375,6 +375,7 @@ public class EntryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
}
|
}
|
||||||
|
|
||||||
sortShownEntries();
|
sortShownEntries();
|
||||||
|
checkPeriodUniformity();
|
||||||
_view.onListChange();
|
_view.onListChange();
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
@ -669,6 +670,10 @@ public class EntryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (infos.size() == 1) {
|
||||||
|
return infos.get(0).getPeriod();
|
||||||
|
}
|
||||||
|
|
||||||
Map<Integer, Integer> occurrences = new HashMap<>();
|
Map<Integer, Integer> occurrences = new HashMap<>();
|
||||||
for (TotpInfo info : infos) {
|
for (TotpInfo info : infos) {
|
||||||
int period = info.getPeriod();
|
int period = info.getPeriod();
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_marginStart="44.5dp">
|
android:layout_marginStart="44.5dp">
|
||||||
|
@ -110,8 +110,9 @@
|
||||||
android:layout_weight="1">
|
android:layout_weight="1">
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/text_issuer"
|
android:id="@+id/text_issuer"
|
||||||
|
android:maxLines="1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="text"/>
|
android:inputType="text"/>
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue