Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.2

- fix nullable return on HeadsetManager

## 3.1.1

- fix startup crash issue for some Android devices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class HeadsetManager(private val context: Context) {
fun Context.hasPermissionBluetooth() : Boolean {
try {
val packageInfo = this.packageManager.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS)
return packageInfo.requestedPermissions.contains("android.permission.BLUETOOTH")
return packageInfo.requestedPermissions?.contains("android.permission.BLUETOOTH") ?: false
} catch (t: Throwable) {

}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: assets_audio_player
description: Play music/audio stored in assets files directly from Flutter & Network, Radio, LiveStream, Local files. Compatible with Android, iOS, and macOS.
version: 3.1.1
version: 3.1.2

#author: Florent Champigny <[email protected]>
homepage: https://github.com/florent37/Flutter-AssetsAudioPlayer
Expand Down