Skip to content

Commit 575cc39

Browse files
committed
initialize mchatservice if not initialized
1 parent eefabe4 commit 575cc39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/kotlin/io/treehouses/remote/BaseInitialActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ open class BaseInitialActivity: PermissionActivity(), NavigationView.OnNavigatio
5151
}
5252

5353
override fun getChatService(): BluetoothChatService {
54+
if (!this::mChatService.isInitialized) {
55+
mChatService = BluetoothChatService()
56+
}
5457
return mChatService
5558
}
5659

0 commit comments

Comments
 (0)