mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-12 18:17:28 -04:00
limit max resolution as set in Settings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user