Fix statuses from the wrong timeline being restored into Home (again)

This commit is contained in:
Shadowfacts 2022-12-12 22:47:16 -05:00
parent 3c80ec8b43
commit 2891f47cb3
2 changed files with 3 additions and 2 deletions

View File

@ -83,7 +83,8 @@ class TimelinesPageViewController: SegmentedPageViewController<TimelinesPageView
return
}
selectPage(page, animated: false)
let timelineVC = pageControllers[currentIndex] as! TimelineViewController
// can't use currentIndex here because the view isn't loaded yet, and so the page wasn't actually updated by the selectPage call
let timelineVC = pageControllers[pages.firstIndex(of: page)!] as! TimelineViewController
timelineVC.restoreActivity(activity)
}

View File

@ -42,7 +42,7 @@ class SegmentedPageViewController<Page: Hashable>: UIPageViewController, UIPageV
self.selectPage(option, animated: true)
}
}
// TODO: double check this with the custom segmented control
// TODO: the custom segmented control isn't treated as a group and I have no idea how to change that
// the segemented control itself is only focusable when VoiceOver is in Group navigation mode,
// so make it clear that to switch tabs the user needs to enter the group
segmentedControl.accessibilityHint = "Enter group to select timeline"