Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e660726 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add info log for debug purposes" into main

parents 930650e9 b9320ca8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ constructor(
                    smartSpaceManager.createSmartspaceSession(
                        SmartspaceConfig.Builder(applicationContext, AMBIENT_CUE_SURFACE).build()
                    )
                Log.i(TAG, "SmartSpace session created")

                val smartSpaceListener = OnTargetsAvailableListener { targets ->
                    val actions =
@@ -137,9 +138,11 @@ constructor(
                }

                session.addOnTargetsAvailableListener(executor, smartSpaceListener)
                Log.i(TAG, "SmartSpace session addOnTargetsAvailableListener")
                awaitClose {
                    session.removeOnTargetsAvailableListener(smartSpaceListener)
                    session.close()
                    Log.i(TAG, "SmartSpace session closed")
                }
            }
            .onEach { actions -> isVisible.update { actions.isNotEmpty() } }