-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash when navigate to prev/next lesson #172
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не очень мне нравится, что в goToNextSection() и goToPrevSection() очень много кода дублируется. Мб можно попробовать общую логику вынести куда-нибудь в отдельное место?
Stepic/UnitsViewController.swift
Outdated
@@ -335,12 +341,43 @@ class UnitsViewController: UIViewController, ShareableController, UIViewControll | |||
} | |||
|
|||
self.section = prevSection | |||
|
|||
// Exam | |||
guard !prevSection.isExam else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нормально, что это находится после self.section = prevSection
?
@Ostrenkiy там нет какой-то слишком интеллектуальной логики, думаешь нужно? |
нет, давай так оставим |
Задача: #APPS-1629, #APPS-1647
Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Исправили краш при переходе к экзамену и к пустому модулю с кнопки "Следующий урок"
Описание:
isExam == true
и показываем алерт (как в силлабусе).