mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
Compare commits
71
Commits
v1.1.0
..
336e106e01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
336e106e01 | ||
|
|
c0f802c27b | ||
|
|
da033e697f | ||
|
|
5bb32df16b | ||
|
|
6cb364531b | ||
|
|
72fa2c765d | ||
|
|
0643b6d719 | ||
|
|
da79b306b2 | ||
|
|
9a6f8b86fc | ||
|
|
37214fcbdc | ||
|
|
eb578fa5e6 | ||
|
|
51f79ac8ad | ||
|
|
ddef0fc2c8 | ||
|
|
dbc72d5259 | ||
|
|
f686294aab | ||
|
|
29cdebe424 | ||
|
|
ef476552e0 | ||
|
|
dd0d4d52c1 | ||
|
|
0c825a3d85 | ||
|
|
2d07d5f1fa | ||
|
|
2dc9e71ab5 | ||
|
|
062b0cadd2 | ||
|
|
ad92e6d3ff | ||
|
|
328956d84a | ||
|
|
9d58e15b39 | ||
|
|
721a42f60f | ||
|
|
6a0f5678ec | ||
|
|
dbfc4172fb | ||
|
|
2097a9f7fd | ||
|
|
3053e2b5c9 | ||
|
|
7f1585a6ad | ||
|
|
704edfbaaf | ||
|
|
5622c007f2 | ||
|
|
3719a71e0f | ||
|
|
44fb9a022d | ||
|
|
45cc51192a | ||
|
|
d981690ba6 | ||
|
|
161a621d71 | ||
|
|
7da1afa643 | ||
|
|
77e89fc9e2 | ||
|
|
36e97cb621 | ||
|
|
c539376cc4 | ||
|
|
0465147a7c | ||
|
|
2e96c61b82 | ||
|
|
08470aaf00 | ||
|
|
8ee98327fe | ||
|
|
a91f455534 | ||
|
|
ac175d091f | ||
|
|
872dde4e1c | ||
|
|
23807a3506 | ||
|
|
a3fda31743 | ||
|
|
b8f04e5426 | ||
|
|
46eb293f98 | ||
|
|
5af187ba48 | ||
|
|
9847cdb894 | ||
|
|
fac2b62ec2 | ||
|
|
81b5bfb56b | ||
|
|
7abf5c0e88 | ||
|
|
ed4a32cba3 | ||
|
|
0778c49b18 | ||
|
|
3db1d795dc | ||
|
|
07fc618fd2 | ||
|
|
75da5d16ac | ||
|
|
1d40ac5b35 | ||
|
|
6bdd052472 | ||
|
|
74632eff10 | ||
|
|
3055726fb3 | ||
|
|
d10a29b931 | ||
|
|
75a264ca83 | ||
|
|
dcd764bd68 | ||
|
|
1a596077fa |
@@ -0,0 +1 @@
|
|||||||
|
ko_fi: austinried
|
||||||
@@ -134,8 +134,8 @@ android {
|
|||||||
applicationId "com.subtracks"
|
applicationId "com.subtracks"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 4
|
versionCode 5
|
||||||
versionName '1.1.0'
|
versionName '1.1.1'
|
||||||
}
|
}
|
||||||
splits {
|
splits {
|
||||||
abi {
|
abi {
|
||||||
|
|||||||
+12
-1
@@ -34,6 +34,12 @@ const rebuildQueue = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const setDuckPaused = (duckPaused: boolean) => {
|
||||||
|
unstable_batchedUpdates(() => {
|
||||||
|
useStore.getState().setDuckPaused(duckPaused)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
let serviceCreated = false
|
let serviceCreated = false
|
||||||
|
|
||||||
const createService = async () => {
|
const createService = async () => {
|
||||||
@@ -81,9 +87,14 @@ const createService = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data.paused) {
|
if (data.paused) {
|
||||||
|
let state = useStore.getState().playerState
|
||||||
|
if (state === State.Playing || state === State.Buffering || state === State.Connecting) {
|
||||||
trackPlayerCommands.enqueue(TrackPlayer.pause)
|
trackPlayerCommands.enqueue(TrackPlayer.pause)
|
||||||
} else {
|
setDuckPaused(true)
|
||||||
|
}
|
||||||
|
} else if (useStore.getState().duckPaused) {
|
||||||
trackPlayerCommands.enqueue(TrackPlayer.play)
|
trackPlayerCommands.enqueue(TrackPlayer.play)
|
||||||
|
setDuckPaused(false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ export type TrackPlayerSlice = {
|
|||||||
playerState: State
|
playerState: State
|
||||||
setPlayerState: (playerState: State) => void
|
setPlayerState: (playerState: State) => void
|
||||||
|
|
||||||
|
duckPaused: boolean
|
||||||
|
setDuckPaused: (duckPaused: boolean) => void
|
||||||
|
|
||||||
currentTrack?: TrackExt
|
currentTrack?: TrackExt
|
||||||
currentTrackIdx?: number
|
currentTrackIdx?: number
|
||||||
setCurrentTrackIdx: (idx?: number) => void
|
setCurrentTrackIdx: (idx?: number) => void
|
||||||
@@ -197,6 +200,9 @@ export const createTrackPlayerSlice = (set: SetState<Store>, get: GetState<Store
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
duckPaused: false,
|
||||||
|
setDuckPaused: duckPaused => set({ duckPaused }),
|
||||||
|
|
||||||
queue: [],
|
queue: [],
|
||||||
setQueue: async (songs, name, contextType, contextId, playTrack, shuffle) => {
|
setQueue: async (songs, name, contextType, contextId, playTrack, shuffle) => {
|
||||||
return trackPlayerCommands.enqueue(async () => {
|
return trackPlayerCommands.enqueue(async () => {
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
## Fixed
|
||||||
|
- Don't resume playback after alarm/call ends if the alarm/call didn't pause playback in the first place
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "subtracks",
|
"name": "subtracks",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user