Skip to content

Commit

Permalink
bluetooth: smoother initialization (fixes #2054) (#2157)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Dec 3, 2024
1 parent 25cbdb9 commit 27b544c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ open class BaseInitialActivity: PermissionActivity(), NavigationView.OnNavigatio
}

override fun getChatService(): BluetoothChatService {
if (!this::mChatService.isInitialized) {
mChatService = BluetoothChatService()
}
return mChatService
}

Expand Down

0 comments on commit 27b544c

Please sign in to comment.