Fix statuses from the wrong timeline being restored into Home (again)
This commit is contained in:
parent
3c80ec8b43
commit
2891f47cb3
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue