make Focus Before Capture optional, disabled by default

This commit is contained in:
tibbi
2016-06-18 20:17:15 +02:00
parent 5265edf5fe
commit 6aa66155d4
6 changed files with 61 additions and 4 deletions

View File

@@ -21,4 +21,12 @@ public class Config {
public void setLongTapEnabled(boolean enabled) {
prefs.edit().putBoolean(Constants.LONG_TAP, enabled).apply();
}
public boolean getFocusBeforeCaptureEnabled() {
return prefs.getBoolean(Constants.FOCUS_BEFORE_CAPTURE, false);
}
public void setFocusBeforeCaptureEnabled(boolean enabled) {
prefs.edit().putBoolean(Constants.FOCUS_BEFORE_CAPTURE, enabled).apply();
}
}