Mobile volume not set to max bug fix

WinGet release GHA action added
This commit is contained in:
Kingkor Roy Tirtho 2022-07-20 09:43:59 +06:00
parent 02370c331a
commit b0bcb2a85c
2 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -86,7 +86,12 @@ class Playback extends PersistedChangeNotifier {
(() async {
cache = await Hive.openLazyBox<CacheTrack>("track-cache");
if (Platform.isAndroid) {
await player.setVolume(1);
volume = 1;
} else {
await player.setVolume(volume);
}
_subscriptions.addAll([
player.onPlayerStateChanged.listen(