Skip to content

Commit

Permalink
Fix bug with connecting to bonded printer
Browse files Browse the repository at this point in the history
  • Loading branch information
skyestudiosDev committed May 24, 2024
1 parent 804a0c2 commit 728f6c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import java.util.UUID
import kotlin.time.Duration.Companion.seconds

@SuppressLint("MissingPermission")
internal object AndroidBluetoothConnection: BlueLine {
internal class AndroidBluetoothConnection: BlueLine {

private val stateFlow = MutableStateFlow(ConnectionState())
private val bluetoothManager: BluetoothManager = applicationContext.getSystemService(BluetoothManager::class.java)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ package com.dilivva.blueline.connection.bluetooth


@Suppress("FunctionName", "unused")
actual fun BlueLine(): BlueLine = AndroidBluetoothConnection
actual fun BlueLine(): BlueLine = AndroidBluetoothConnection()

0 comments on commit 728f6c0

Please sign in to comment.