commit | 0c8bd2513188adc6a7a31b512cb6c1bd0c2d6b80 | [log] [tgz] |
---|---|---|
author | Darrell Shi <darrellshi@google.com> | Wed Jan 03 12:32:07 2024 -0800 |
committer | Darrell Shi <darrellshi@google.com> | Wed Jan 03 20:38:49 2024 +0000 |
tree | 45e6c32302f83cfe0fac499ba39e38fb396f7704 | |
parent | 1fc9f46eae9be05b0469d1402fe99cc63976c251 [diff] |
Put smartspace remote views in widget Bug: 318416359 Fix: 318416359 Test: manual Flag: ACONFIG com.android.systemui.communal_hub DEVELOPMENT Change-Id: If4c60ffc4a6b0f1526ce20d14c31a054ad8d55c5
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 55fc3a2..89fdb63 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 @@ -373,7 +374,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 = {}