android: add ability to launch digital assistant on long press #180
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the codebase by reorganizing constants, improving modularity, and enhancing the
PressAndHoldSettingsfunctionality. The most significant changes include moving constants fromutilsto a newconstantspackage, adding logic for customizable long-press actions, and cleaning up unused imports and code.Refactoring and Modularization:
AirPodsNotifications,NoiseControlMode, andBatteryfromutilsto a newconstantspackage for better organization (android/app/src/main/java/me/kavishdevar/librepods/constants/Packets.kt,android/app/src/main/java/me/kavishdevar/librepods/constants/StemAction.kt) [1] [2].Packetsfile during the refactor to streamline the codebase (android/app/src/main/java/me/kavishdevar/librepods/constants/Packets.kt).Enhancements to
PressAndHoldSettings:SharedPreferences. This includes support for actions like "Cycle Noise Control Modes" and "Digital Assistant" (android/app/src/main/java/me/kavishdevar/librepods/composables/PressAndHoldSettings.kt) [1] [2] [3].StemActionenum to define possible long-press actions (android/app/src/main/java/me/kavishdevar/librepods/constants/StemAction.kt).Import Cleanup:
constantspackage structure across multiple files (e.g.,MainActivity.kt,QuickSettingsDialogActivity.kt, andBatteryView.kt) [1] [2] [3].Minor Functional Updates:
bleOnlyModesetting inAirPodsSettingsScreento support BLE-only mode configuration (android/app/src/main/java/me/kavishdevar/librepods/screens/AirPodsSettingsScreen.kt).These changes improve code maintainability, enhance user customization options, and align with best practices for modularization.
^^ obviously ai :]