From b0bcb2a85c7e5e5d159f6ae771df329038cf3370 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Wed, 20 Jul 2022 09:43:59 +0600 Subject: [PATCH] Mobile volume not set to max bug fix WinGet release GHA action added --- .github/workflows/spotube-release.yml | 21 ++++++++------------- lib/provider/Playback.dart | 7 ++++++- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/spotube-release.yml b/.github/workflows/spotube-release.yml index 21205d1b..f446af7c 100644 --- a/.github/workflows/spotube-release.yml +++ b/.github/workflows/spotube-release.yml @@ -216,19 +216,14 @@ jobs: allowUpdates: true artifacts: Spotube-Windows-Bundle/*,Spotube-Macos-Bundle/*,Spotube-Linux-Bundle/*,Spotube-Android-Bundle/*,RELEASE.sha256sum,RELEASE.md5sum - # publish_winget: - # needs: update_release - # runs-on: windows-latest - # steps: - # - name: Get latest tag - # id: tag - # uses: dawidd6/action-get-tag@v1 - # with: - # strip_v: true - # - run: | - # winget install wingetcreate --silent - # choco install tree -y - # wingetcreate update KRTirtho.Spotube --urls https://github.com/KRTirtho/spotube/releases/download/v${{ github.event.inputs.tag }}/Spotube-windows-x86_64-setup.exe https://github.com/KRTirtho/spotube/releases/download/v${{ github.event.inputs.tag }}/Spotube-windows-x86_64-setup.exe --version ${{ github.event.inputs.tag }} --token ${{ secrets.GITHUB_TOKEN }} --submit + publish_winget: + needs: update_release + runs-on: windows-latest # action can only be run on windows + steps: + - uses: vedantmgoyal2009/winget-releaser@latest + with: + identifier: KRTirtho.Spotube + token: ${{ secrets.WINGET_TOKEN }} publish_flathub: needs: update_release diff --git a/lib/provider/Playback.dart b/lib/provider/Playback.dart index afa7ca53..af1a0eff 100644 --- a/lib/provider/Playback.dart +++ b/lib/provider/Playback.dart @@ -86,7 +86,12 @@ class Playback extends PersistedChangeNotifier { (() async { cache = await Hive.openLazyBox("track-cache"); - await player.setVolume(volume); + if (Platform.isAndroid) { + await player.setVolume(1); + volume = 1; + } else { + await player.setVolume(volume); + } _subscriptions.addAll([ player.onPlayerStateChanged.listen(