mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-12 18:17:28 -04:00
add the option to disable Shutter sound
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user