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

Commit b9320ca8 authored by Kai Li's avatar Kai Li
Browse files

Add info log for debug purposes

Change-Id: Icc326d16af9925d501fc84d450b3b7be226f713c
Bug: 403422950
Test: local build
Flag: com.android.systemui.enable_underlay
parent 6c22fd53
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ constructor(
                    smartSpaceManager.createSmartspaceSession(
                        SmartspaceConfig.Builder(applicationContext, AMBIENT_CUE_SURFACE).build()
                    )
                Log.i(TAG, "SmartSpace session created")

                val smartSpaceListener = OnTargetsAvailableListener { targets ->
                    val actions =
@@ -95,9 +96,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() } }