Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Summers Pittman committed Oct 28, 2024
1 parent b17a777 commit 3b4423a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ include(
":kotlin",
":compose:snippets",
":wear",
":views",
)
include(":views")

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private object GeneratedPreviewWithoutGlance {
lateinit var appContext: Context

fun MyWidgetPreview() {
// [START android_view_appwidget_generated_preview01]
// [START android_view_appwidget_generatedpreview_with_remoteview]
AppWidgetManager.getInstance(appContext).setWidgetPreview(
ComponentName(
appContext,
Expand All @@ -48,11 +48,11 @@ private object GeneratedPreviewWithoutGlance {
AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN,
RemoteViews("com.example", R.layout.widget_preview)
)
// [END android_view_appwidget_generated_preview01]
// [END android_view_appwidget_generatedpreview_with_remoteview]
}

suspend fun MyGlanceWidgetPreview() {
// [START android_view_appwidget_generated_preview02]
// [START android_view_appwidget_generatedpreview_with_glance]
AppWidgetManager.getInstance(appContext).setWidgetPreview(
ComponentName(
appContext,
Expand All @@ -64,7 +64,7 @@ private object GeneratedPreviewWithoutGlance {
),
)

// [END android_view_appwidget_generated_preview02]
// [END android_view_appwidget_generatedpreview_with_glance]
}
}

Expand Down

0 comments on commit 3b4423a

Please sign in to comment.