Some syntax cleanup, particularly in the default device settings
Fixed autoSleepTimerStartTime being set twice instead of autoSleepTimerEndTime
How was this tested?
Tested on Android 15 with a Pixel 6a. I did not test with downgrading and upgrading the versions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/1462
**Author:** [@nichwall](https://github.com/nichwall)
**Created:** 2/2/2025
**Status:** ✅ Merged
**Merged:** 2/2/2025
**Merged by:** [@advplyr](https://github.com/advplyr)
**Base:** `master` ← **Head:** `andriod_deviceManager_cleanup`
---
### 📝 Commits (3)
- [`973dca8`](https://github.com/advplyr/audiobookshelf-app/commit/973dca83a2aa61d45a24580a879756d68f78d690) Add: function comments, autoformatting applied
- [`d4090d1`](https://github.com/advplyr/audiobookshelf-app/commit/d4090d15be592ebdc19136f5128725e2c34f7494) Simplify default value assignment
- [`9e7a76b`](https://github.com/advplyr/audiobookshelf-app/commit/9e7a76bd97e35f02cb2c7276c60279425f9933f7) Simplify nullable return
### 📊 Changes
**1 file changed** (+111 additions, -70 deletions)
<details>
<summary>View changed files</summary>
📝 `android/app/src/main/java/com/audiobookshelf/app/device/DeviceManager.kt` (+111 -70)
</details>
### 📄 Description
## Overview
This PR cleans up the `DeviceManager.kt` file.
## Detailed description
- No functional changes were made
- Code was autoformatted
- Javadoc-style comments were added
- Some syntax cleanup, particularly in the default device settings
- Fixed `autoSleepTimerStartTime` being set twice instead of `autoSleepTimerEndTime`
## How was this tested?
Tested on Android 15 with a Pixel 6a. I did not test with downgrading and upgrading the versions.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/1462
Author: @nichwall
Created: 2/2/2025
Status: ✅ Merged
Merged: 2/2/2025
Merged by: @advplyr
Base:
master← Head:andriod_deviceManager_cleanup📝 Commits (3)
973dca8Add: function comments, autoformatting appliedd4090d1Simplify default value assignment9e7a76bSimplify nullable return📊 Changes
1 file changed (+111 additions, -70 deletions)
View changed files
📝
android/app/src/main/java/com/audiobookshelf/app/device/DeviceManager.kt(+111 -70)📄 Description
Overview
This PR cleans up the
DeviceManager.ktfile.Detailed description
autoSleepTimerStartTimebeing set twice instead ofautoSleepTimerEndTimeHow was this tested?
Tested on Android 15 with a Pixel 6a. I did not test with downgrading and upgrading the versions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.