mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-13 02:26:40 -04:00
allow setting max video resolution, closes #7
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user