diff --git a/android/app/src/main/kotlin/com/rtirl/chat/MainActivity.kt b/android/app/src/main/kotlin/com/rtirl/chat/MainActivity.kt index 44772f71..635495e2 100644 --- a/android/app/src/main/kotlin/com/rtirl/chat/MainActivity.kt +++ b/android/app/src/main/kotlin/com/rtirl/chat/MainActivity.kt @@ -46,8 +46,6 @@ class MainActivity : FlutterActivity(), AudioManager.OnAudioFocusChangeListener override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) handleIntent() - - audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager focusRequest = AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK).run { setAudioAttributes(AudioAttributes.Builder() diff --git a/pubspec.lock b/pubspec.lock index bf510189..dee8846b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -561,10 +561,10 @@ packages: dependency: "direct main" description: name: just_audio - sha256: "5abfab1d199e01ab5beffa61b3e782350df5dad036cb8c83b79fa45fc656614e" + sha256: ee50602364ba83fa6308f5512dd560c713ec3e1f2bc75f0db43618f0d82ef71a url: "https://pub.dev" source: hosted - version: "0.9.38" + version: "0.9.39" just_audio_platform_interface: dependency: transitive description: @@ -1071,10 +1071,10 @@ packages: dependency: "direct main" description: name: wakelock_plus - sha256: "14758533319a462ffb5aa3b7ddb198e59b29ac3b02da14173a1715d65d4e6e68" + sha256: bf4ee6f17a2fa373ed3753ad0e602b7603f8c75af006d5b9bdade263928c0484 url: "https://pub.dev" source: hosted - version: "1.2.5" + version: "1.2.8" wakelock_plus_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index d22957ca..2955394a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,7 +31,7 @@ dependencies: http: ^0.13.6 in_app_purchase: ^3.2.0 intl: ^0.19.0 - just_audio: ^0.9.38 + just_audio: ^0.9.39 linkify: ^5.0.0 metadata_fetch: ^0.4.1 mobile_scanner: ^5.0.2 @@ -47,16 +47,16 @@ dependencies: sticky_headers: ^0.3.0+2 styled_text: ^8.1.0 url_launcher: ^6.3.0 - wakelock_plus: ^1.2.5 + wakelock_plus: ^1.2.8 webview_flutter: ^4.5.0 webview_flutter_android: ^3.14.0 webview_flutter_wkwebview: ^3.11.0 uuid: ^4.4.0 dev_dependencies: - flutter_lints: ^4.0.0 flutter_test: sdk: flutter + flutter_lints: ^4.0.0 flutter: uses-material-design: true