Open owenfromcanada opened 6 months ago
Tested this PR: Stopping the service and starting the app again with "Allow lower than limit" enabled now stays functional as expected.
I did happen to notice if you set the volume lower than the limit while stopping the service and restarting the app, the upper limit gets changed to that lower volume, meaning you'd have to go into the app and turn it back up if wanted. This could be considered a feature rather than a bug though depending who you ask since it could help prevent getting hit with overly-loud volume in some cases.
The changes in this pull request involve multiple updates across various files in the Android application. Key modifications include updates to the build.gradle
file to reflect new SDK versions, application versioning, and dependency management. The AndroidManifest.xml
has been adjusted for permissions and service configurations. A new method for loading preferences has been added in VolumeService.kt
, while UI components have been replaced with Material Design counterparts in layout files. Additionally, a new application class has been introduced, and various theme updates have been made in the themes.xml
files.
File Path | Change Summary |
---|---|
app/build.gradle |
- kapt plugin applied as false- compileSdkVersion updated to 34- minSdkVersion updated to 19- targetSdkVersion updated to 34- versionCode updated to 10- versionName updated to "1.6.0"- multiDexEnabled set to true- namespace property added- Material library version updated to 1.12.0 |
app/src/main/AndroidManifest.xml |
- package attribute removed- android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK added- android:theme updated to @style/Theme.VolumeLockr - VolumeService updated with android:foregroundServiceType and android:exported attributes |
app/src/main/java/com/klee/volumelockr/service/VolumeService.kt |
- New method loadGeneralPreferences() added- onStartCommand() modified to call loadGeneralPreferences() - loadPreferences() updated to include loadGeneralPreferences() |
app/src/main/java/com/klee/volumelockr/ui/MainActivity.kt |
- Import for DynamicColors added |
app/src/main/java/com/klee/volumelockr/ui/VolumeAdapter.kt |
- SeekBar replaced with Slider - onBindViewHolder updated for Slider - registerSeekBarCallback modified for Slider - Volume updating logic adjusted |
app/src/main/java/com/klee/volumelockr/ui/VolumeLockrApplication.kt |
- New class VolumeLockrApplication added, overriding onCreate() to apply dynamic colors |
app/src/main/res/layout/preference_switch.xml |
- New layout file defining a MaterialSwitch component |
app/src/main/res/layout/volume_card.xml |
- CardView , TextView , SeekBar , and SwitchCompat replaced with MaterialCardView , MaterialTextView , Slider , and MaterialSwitch respectively |
app/src/main/res/values-night/themes.xml |
- Style Theme.Volume removed |
app/src/main/res/values/themes.xml |
- New style Theme.VolumeLockr added- New styles ThemeOverlay.App.Preference and PreferenceMaterialSwitch added |
build.gradle |
- Kotlin version updated to 1.8.0 - Android Gradle plugin updated to 8.5.0 |
gradle.properties |
- New properties added: android.defaults.buildfeatures.buildconfig , android.nonTransitiveRClass , android.nonFinalResIds |
gradle/wrapper/gradle-wrapper.properties |
- distributionUrl updated to Gradle version 8.7 |
In the garden of code, we hop and play,
With sliders and colors, brightening the day.
From Volume to Lockr, our themes now align,
A switch here, a service there, all by design.
With every new feature, our app starts to bloom,
Hopping with joy, we chase away gloom! 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Per discussion: https://github.com/jonathanklee/VolumeLockr/issues/3#issuecomment-2068413029
Summary by CodeRabbit
Release Notes
New Features
Improvements
SeekBar
withSlider
for a more modern user experience.Theme.VolumeLockr
for better visual consistency.Bug Fixes
Chores