Skip to content

Commit

Permalink
Suppress DEPRECATION in WidgetUtils.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Jan 20, 2025
1 parent e933fb2 commit 102b3ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class WidgetUtils
)
}

@Suppress("LongParameterList")
@Suppress("LongParameterList", "DEPRECATION")
fun showList(
appWidgetManager: AppWidgetManager,
views: RemoteViews,
Expand All @@ -167,8 +167,8 @@ class WidgetUtils
listIntent.data = Uri.parse(
listIntent.toUri(Intent.URI_INTENT_SCHEME)
)
// TODO views.setRemoteAdapter(R.id.widget_content, listIntent)
// TODO appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.widget_content)
views.setRemoteAdapter(R.id.widget_content, listIntent)
appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.widget_content)
appWidgetManager.updateAppWidget(appWidgetId, views)
}

Expand Down

0 comments on commit 102b3ca

Please sign in to comment.