mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-25 00:06:08 +00:00
Merge pull request #370 from maximbaz/maximbaz-patch-1
Show account name only if it's set
This commit is contained in:
commit
592d482a9b
1 changed files with 6 additions and 4 deletions
|
@ -113,11 +113,13 @@ public class EntryHolder extends RecyclerView.ViewHolder {
|
|||
// only show the button if this entry is of type HotpInfo
|
||||
_buttonRefresh.setVisibility(entry.getInfo() instanceof HotpInfo ? View.VISIBLE : View.GONE);
|
||||
|
||||
_profileIssuer.setText(entry.getIssuer());
|
||||
_profileName.setText("");
|
||||
if (showAccountName) {
|
||||
_profileName.setText(" - " + entry.getName());
|
||||
String profileIssuer = entry.getIssuer();
|
||||
String profileName = showAccountName ? entry.getName() : "";
|
||||
if (!profileIssuer.isEmpty() && !profileName.isEmpty()) {
|
||||
profileName = " - " + profileName;
|
||||
}
|
||||
_profileIssuer.setText(profileIssuer);
|
||||
_profileName.setText(profileName);
|
||||
|
||||
if (_hidden) {
|
||||
hideCode();
|
||||
|
|
Loading…
Add table
Reference in a new issue