mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Add ability to change account name position
This commit is contained in:
parent
b08a2f5f93
commit
813fd62dc7
49 changed files with 118 additions and 102 deletions
|
@ -114,10 +114,6 @@ public class Preferences {
|
|||
setPasswordReminderTimestamp(new Date().getTime());
|
||||
}
|
||||
|
||||
public boolean isAccountNameVisible() {
|
||||
return _prefs.getBoolean("pref_account_name", true);
|
||||
}
|
||||
|
||||
public boolean isIconVisible() {
|
||||
return _prefs.getBoolean("pref_show_icons", true);
|
||||
}
|
||||
|
@ -189,6 +185,14 @@ public class Preferences {
|
|||
_prefs.edit().putInt("pref_current_view_mode", viewMode.ordinal()).apply();
|
||||
}
|
||||
|
||||
public AccountNamePosition getAccountNamePosition() {
|
||||
return AccountNamePosition.fromInteger(_prefs.getInt("pref_account_name_position", AccountNamePosition.END.ordinal()));
|
||||
}
|
||||
|
||||
public void setAccountNamePosition(AccountNamePosition accountNamePosition) {
|
||||
_prefs.edit().putInt("pref_account_name_position", accountNamePosition.ordinal()).apply();
|
||||
}
|
||||
|
||||
public Integer getUsageCount(UUID uuid) {
|
||||
Integer usageCount = getUsageCounts().get(uuid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue