feat: 添加双击切换壁纸配置字段到 AppConfig

- 新增 doubleTapEnabled 字段,默认值为 true
- 添加 getter 和 setter 方法

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
hughhuangandClaude Sonnet 4.5 committed 2026-01-31 17:11:36 +08:00
1 parent 9799cc104a
commit a3599b056f
1 file changed
+5
@@ -15,6 +15,7 @@ public class AppConfig {
private boolean videoMuted; private boolean videoMuted;
private boolean videoPauseOnBattery; private boolean videoPauseOnBattery;
private List<String> videoUris; private List<String> videoUris;
private boolean doubleTapEnabled;
public AppConfig() { public AppConfig() {
this.selectedFolders = new java.util.ArrayList<>(); this.selectedFolders = new java.util.ArrayList<>();
@@ -26,6 +27,7 @@ public class AppConfig {
this.videoEnabled = true; this.videoEnabled = true;
this.videoMuted = true; this.videoMuted = true;
this.videoPauseOnBattery = true; this.videoPauseOnBattery = true;
this.doubleTapEnabled = true;
} }
// Getters and Setters // Getters and Setters
@@ -65,6 +67,9 @@ public class AppConfig {
public List<String> getVideoUris() { return videoUris; } public List<String> getVideoUris() { return videoUris; }
public void setVideoUris(List<String> uris) { this.videoUris = uris; } public void setVideoUris(List<String> uris) { this.videoUris = uris; }
public boolean isDoubleTapEnabled() { return doubleTapEnabled; }
public void setDoubleTapEnabled(boolean doubleTapEnabled) { this.doubleTapEnabled = doubleTapEnabled; }
/** /**
* 检查是否有可用的媒体源(文件夹、图片或视频) * 检查是否有可用的媒体源(文件夹、图片或视频)
*/ */