Merge "Put smartspace remote views in widget" into main
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
index 17c4e02..5a4e0a9 100644
--- a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
+++ b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
@@ -16,6 +16,7 @@
package com.android.systemui.communal.ui.compose
+import android.appwidget.AppWidgetHostView
import android.os.Bundle
import android.util.SizeF
import android.widget.FrameLayout
@@ -376,7 +377,7 @@
AndroidView(
modifier = modifier,
factory = { context ->
- FrameLayout(context).apply { addView(model.remoteViews.apply(context, this)) }
+ AppWidgetHostView(context).apply { updateAppWidget(model.remoteViews) }
},
// For reusing composition in lazy lists.
onReset = {},