Enhance DND/Focus mode with rotation timer and logging#7
Conversation
Co-authored-by: LRAB1 <110101676+LRAB1@users.noreply.github.com>
Co-authored-by: LRAB1 <110101676+LRAB1@users.noreply.github.com>
Co-authored-by: LRAB1 <110101676+LRAB1@users.noreply.github.com>
Integrate Nothing OS Focus Mode into DND follow detection
Feature/follow focus mode
…ggle Co-authored-by: LRAB1 <110101676+LRAB1@users.noreply.github.com>
refactor: remove unused picker mode state and related logic
…-screen Add DND permission rationale dialog before navigating to system settings
|
First, thanks for opening this PR and for the effort you put into it. I like the overall goal, especially adding DnD/Focus-aware behavior and improving diagnostics. Before merge, I’d like to align on a few design points:
If you want, we can resolve point 1 first (global-only vs global + override), and then finalize the implementation accordingly. |
|
I'll try and look into it this week. The global-only was an oversight on my part, will be adjusting. |
This pull request introduces several enhancements to project configuration, database schema, and core repository logic for better Android development workflow and feature support. The main changes include the addition of per-project code style settings, new VSCode automation tasks for Android development, and an update to the database schema and repository logic to support a new "skip on DND" (Do Not Disturb) flag for wallpaper collections. There are also improvements to DND state handling and diagnostics within the repository.
Development Environment Configuration:
.idea/codeStyles/Project.xmland enabled usage of these settings in.idea/codeStyles/codeStyleConfig.xml. [1] [2].vscode/tasks.json, including ADB wireless pairing/connection and install/launch automation for debug APKs.Database and Model Enhancements:
app/schemas/com.ninecsdev.wallpaperchanger.data.local.AppDatabase/2.json) to add a newskipOnDnd(INTEGER NOT NULL) column to thecollectionstable, reflecting the new flag for skipping collections during DND mode. [1] [2] [3]Repository and Logic Updates:
WallpaperRepositoryto support theskipOnDndflag in collection creation and update methods (importFolderAsCollection,createManualCollection, andupdateCollection). These methods now accept and persist the new flag. [1] [2] [3] [4] [5]Permissions:
android.permission.ACCESS_NOTIFICATION_POLICYpermission toAndroidManifest.xmlto allow the app to check and respond to DND state.