add the option to disable Shutter sound

This commit is contained in:
tibbi
2016-07-09 20:42:36 +02:00
parent 17b771a649
commit b33ecdcc20
6 changed files with 51 additions and 1 deletions

View File

@@ -53,4 +53,12 @@ public class Config {
public void setMaxResolution(int maxRes) {
mPrefs.edit().putInt(Constants.MAX_RESOLUTION, maxRes).apply();
}
public boolean getIsSoundEnabled() {
return mPrefs.getBoolean(Constants.SOUND, true);
}
public void setIsSoundEnabled(boolean enabled) {
mPrefs.edit().putBoolean(Constants.SOUND, enabled).apply();
}
}