mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Add ability to change view mode
This commit is contained in:
parent
ee8fd2e9f2
commit
f3ed79dc71
6 changed files with 80 additions and 0 deletions
|
@ -61,6 +61,16 @@ public class Preferences {
|
|||
|
||||
}
|
||||
|
||||
public int getCurrentViewMode() {
|
||||
return _prefs.getInt("pref_current_view_mode", 0);
|
||||
}
|
||||
|
||||
public void setCurrentViewMode(ViewMode viewMode) {
|
||||
_prefs.edit().putInt("pref_current_view_mode", viewMode.ordinal()).apply();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public int getTimeout() {
|
||||
return _prefs.getInt("pref_timeout", -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue