From 940746f24839b9e11b956aae5e67f4eef36be259 Mon Sep 17 00:00:00 2001 From: OxygenCobalt Date: Thu, 24 Dec 2020 11:30:23 -0700 Subject: [PATCH] Make state restore use names instead of ids Make it so that PlaybackStateDatabase stores the item data for PlaybackState/QueueItems as strings instead of ids, as ids are too volitaile if the music library changes. --- .github/CONTRIBUTING.md | 2 +- .github/ISSUE_TEMPLATE/bug-crash-report.md | 3 +- app/build.gradle | 8 +-- .../oxycblt/auxio/database/PlaybackState.kt | 12 ++--- .../auxio/database/PlaybackStateDatabase.kt | 53 ++++++++++++------- .../org/oxycblt/auxio/database/QueueItem.kt | 12 ++--- .../auxio/music/processing/MusicLoader.kt | 1 + .../playback/state/PlaybackStateManager.kt | 31 +++++------ .../recycler/viewholders/BaseViewHolder.kt | 6 +-- info/ADDITIONS.md | 2 +- 10 files changed, 75 insertions(+), 55 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a309fe00b..d00833a39 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -26,8 +26,8 @@ Please keep in mind when requesting a feature: - **Will it be accepted?** Read the [Accepted Additions and Requests](../info/ADDITIONS.md) in order to see the likelihood that your request will be implemented. If you do make a request, provide the following: -- What kind of addition is this? (A Full Feature? A new customization option? A UI Change?) - What is it that you want? +- Is it related to some problem? If so, describe why. - Why do you think it will benefit everyone's usage of the app? If you have the knowledge, you can also implement the feature yourself and create a [Pull Request](https://github.com/OxygenCobalt/Auxio/pulls), but its recommended that **you create an issue beforehand to give me a heads up.** diff --git a/.github/ISSUE_TEMPLATE/bug-crash-report.md b/.github/ISSUE_TEMPLATE/bug-crash-report.md index 0cb8be30f..1bc8fbea3 100644 --- a/.github/ISSUE_TEMPLATE/bug-crash-report.md +++ b/.github/ISSUE_TEMPLATE/bug-crash-report.md @@ -7,8 +7,9 @@ assignees: '' --- -#### Describe the bug/crash +#### Describe the bug/crash: + #### Steps To Reproduce the bug/crash: