Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a0570ef8f7 | |||
| facde1fef7 |
@@ -79,8 +79,8 @@ android {
|
|||||||
applicationId "com.ariacockpit"
|
applicationId "com.ariacockpit"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 10006
|
versionCode 10007
|
||||||
versionName "0.1.0.6"
|
versionName "0.1.0.7"
|
||||||
// Fallback fuer Libraries mit Product Flavors
|
// Fallback fuer Libraries mit Product Flavors
|
||||||
missingDimensionStrategy 'react-native-camera', 'general'
|
missingDimensionStrategy 'react-native-camera', 'general'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "aria-cockpit",
|
"name": "aria-cockpit",
|
||||||
"version": "0.1.0.6",
|
"version": "0.1.0.7",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"android": "react-native run-android",
|
"android": "react-native run-android",
|
||||||
|
|||||||
@@ -1204,10 +1204,6 @@ class AudioService {
|
|||||||
stopBackgroundAudio().catch(() => {});
|
stopBackgroundAudio().catch(() => {});
|
||||||
this.audioQueue = [];
|
this.audioQueue = [];
|
||||||
this.isPlaying = false;
|
this.isPlaying = false;
|
||||||
// Merken: war ein react-native-sound-Sound aktiv? Dann muessen wir nach
|
|
||||||
// release() den Focus-Stack aufmischen (RNSound-Bug: stop+release laesst
|
|
||||||
// den AudioFocusRequest haengen, Spotify resumed sonst nicht).
|
|
||||||
const hadRnSound = !!(this.currentSound || this.resumeSound || this.preloadedSound);
|
|
||||||
if (this.currentSound) {
|
if (this.currentSound) {
|
||||||
this.currentSound.stop();
|
this.currentSound.stop();
|
||||||
this.currentSound.release();
|
this.currentSound.release();
|
||||||
@@ -1236,12 +1232,11 @@ class AudioService {
|
|||||||
// Audio-Focus sofort freigeben — User hat explizit abgebrochen
|
// Audio-Focus sofort freigeben — User hat explizit abgebrochen
|
||||||
this._cancelDeferredFocusRelease();
|
this._cancelDeferredFocusRelease();
|
||||||
AudioFocus?.release().catch(() => {});
|
AudioFocus?.release().catch(() => {});
|
||||||
if (hadRnSound) {
|
// Focus-Stack immer aufmischen — bei aelteren Nachrichten die ueber
|
||||||
// RNSound's haengender USAGE_MEDIA-Focus aufloesen — sonst bleibt
|
// tts_request (PCM-Stream) re-rendert wurden, bleibt Spotify ohne den
|
||||||
// Spotify pausiert obwohl unser Focus released ist.
|
// Kick auch pausiert. Kostet nichts, deckt beide Pfade ab.
|
||||||
AudioFocus?.kickReleaseMedia?.().catch(() => {});
|
AudioFocus?.kickReleaseMedia?.().catch(() => {});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// --- Status & Callbacks ---
|
// --- Status & Callbacks ---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user