mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 11:13:28 +01:00
[AltWidget] Fixes AppDetailWidget not displaying app information
This commit is contained in:
@@ -208,7 +208,7 @@ extension AppsTimelineProvider: IntentTimelineProvider
|
|||||||
func getSnapshot(for intent: Intent, in context: Context, completion: @escaping (AppsEntry) -> Void)
|
func getSnapshot(for intent: Intent, in context: Context, completion: @escaping (AppsEntry) -> Void)
|
||||||
{
|
{
|
||||||
Task<Void, Never> {
|
Task<Void, Never> {
|
||||||
let bundleIDs = [intent.identifier ?? StoreApp.altstoreAppID]
|
let bundleIDs = [intent.app?.identifier ?? StoreApp.altstoreAppID]
|
||||||
|
|
||||||
let snapshot = await self.snapshot(for: bundleIDs)
|
let snapshot = await self.snapshot(for: bundleIDs)
|
||||||
completion(snapshot)
|
completion(snapshot)
|
||||||
@@ -218,7 +218,7 @@ extension AppsTimelineProvider: IntentTimelineProvider
|
|||||||
func getTimeline(for intent: Intent, in context: Context, completion: @escaping (Timeline<AppsEntry>) -> Void)
|
func getTimeline(for intent: Intent, in context: Context, completion: @escaping (Timeline<AppsEntry>) -> Void)
|
||||||
{
|
{
|
||||||
Task<Void, Never> {
|
Task<Void, Never> {
|
||||||
let bundleIDs = [intent.identifier ?? StoreApp.altstoreAppID]
|
let bundleIDs = [intent.app?.identifier ?? StoreApp.altstoreAppID]
|
||||||
|
|
||||||
let timeline = await self.timeline(for: bundleIDs)
|
let timeline = await self.timeline(for: bundleIDs)
|
||||||
completion(timeline)
|
completion(timeline)
|
||||||
|
|||||||
Reference in New Issue
Block a user