Skip to content

Commit b8654c0

Browse files
authored
試験的用にカナリア版はAndroid 16でもバックグラウンド音声を有効にできるように実装 (#5357)
1 parent dfaf395 commit b8654c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/screens/TTSSettings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Typography from '~/components/Typography';
2323
import speechState from '~/store/atoms/speech';
2424
import { isLEDThemeAtom } from '~/store/atoms/theme';
2525
import { translate } from '~/translation';
26+
import { isDevApp } from '~/utils/isDevApp';
2627
import { ASYNC_STORAGE_KEYS } from '../constants';
2728

2829
type SettingItem = {
@@ -115,7 +116,7 @@ const TTSSettingsScreen: React.FC = () => {
115116

116117
// Android 16 (API 36) ではバックグラウンド音声再生が制限されるため無効化
117118
const isAndroid16OrHigher =
118-
Platform.OS === 'android' && Number(Platform.Version) >= 36;
119+
!isDevApp && Platform.OS === 'android' && Number(Platform.Version) >= 36;
119120

120121
// Android 16以上ではバックグラウンド再生を強制的にfalseにする
121122
useEffect(() => {

0 commit comments

Comments
 (0)