limit max resolution as set in Settings

This commit is contained in:
tibbi
2016-06-30 13:26:14 +02:00
parent 040a4965fa
commit 8bbd93183b
6 changed files with 44 additions and 9 deletions

View File

@@ -37,4 +37,12 @@ public class Config {
public void setForceRatioEnabled(boolean enabled) {
mPrefs.edit().putBoolean(Constants.FORCE_RATIO, enabled).apply();
}
public int getMaxResolution() {
return mPrefs.getInt(Constants.MAX_RESOLUTION, 1);
}
public void setMaxResolution(int maxRes) {
mPrefs.edit().putInt(Constants.MAX_RESOLUTION, maxRes).apply();
}
}