allow setting max video resolution, closes #7

This commit is contained in:
tibbi
2016-07-26 20:14:01 +02:00
parent 5a87bed1bb
commit 2d4174c23e
11 changed files with 117 additions and 28 deletions

View File

@@ -54,14 +54,22 @@ public class Config {
mPrefs.edit().putBoolean(Constants.FORCE_RATIO, enabled).apply();
}
public int getMaxResolution() {
public int getMaxPhotoResolution() {
return mPrefs.getInt(Constants.MAX_RESOLUTION, 1);
}
public void setMaxResolution(int maxRes) {
public void setMaxPhotoResolution(int maxRes) {
mPrefs.edit().putInt(Constants.MAX_RESOLUTION, maxRes).apply();
}
public int getMaxVideoResolution() {
return mPrefs.getInt(Constants.MAX_VIDEO_RESOLUTION, 1);
}
public void setMaxVideoResolution(int maxRes) {
mPrefs.edit().putInt(Constants.MAX_VIDEO_RESOLUTION, maxRes).apply();
}
public boolean getIsSoundEnabled() {
return mPrefs.getBoolean(Constants.SOUND, true);
}