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 allowUpdates: true
artifacts: Spotube-Windows-Bundle/*,Spotube-Macos-Bundle/*,Spotube-Linux-Bundle/*,Spotube-Android-Bundle/*,RELEASE.sha256sum,RELEASE.md5sum artifacts: Spotube-Windows-Bundle/*,Spotube-Macos-Bundle/*,Spotube-Linux-Bundle/*,Spotube-Android-Bundle/*,RELEASE.sha256sum,RELEASE.md5sum
# publish_winget: publish_winget:
# needs: update_release needs: update_release
# runs-on: windows-latest runs-on: windows-latest # action can only be run on windows
# steps: steps:
# - name: Get latest tag - uses: vedantmgoyal2009/winget-releaser@latest
# id: tag with:
# uses: dawidd6/action-get-tag@v1 identifier: KRTirtho.Spotube
# with: token: ${{ secrets.WINGET_TOKEN }}
# 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_flathub: publish_flathub:
needs: update_release needs: update_release

View File

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