Add ability to change view mode

This commit is contained in:
Michael Schättgen 2019-04-01 01:21:12 +02:00
parent ee8fd2e9f2
commit f3ed79dc71
6 changed files with 80 additions and 0 deletions

View file

@ -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);