Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
- index 3d46f7c216..719ed41551 100644
- --- a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
- +++ b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
- @@ -1037,6 +1037,8 @@ - (bool)showPlacementTestWelcome
- {
- BOOL isLearningSessionType = (self.sessionModel.sessionType == DUOSessionTypeSkillPractice) || (self.sessionModel.sessionType == DUOSessionTypeGlobalPractice) || (self.sessionModel.sessionType == DUOSessionTypeLesson);
- + BOOL isGildedPracticeSession = [self.sessionModel isKindOfClass:[SkillPracticeModel class]];
- +
- NSNumber *levelIndex = nil;
- if ([self.sessionModel conformsToProtocol:@protocol(SessionLevelModel)]) {
- levelIndex = @(((DUOSessionModel<SessionLevelModel> *)self.sessionModel).levelIndex);
- @@ -1045,12 +1047,14 @@ - (bool)showPlacementTestWelcome
- BOOL mayShowTapTypeToggle;
- if ([determineCondition(DUOBackendExperiment.tapTypeToggleStartingLevelOneAndAbove)
- isEqual:DUOExperimentCondition.experiment]) {
- - mayShowTapTypeToggle = isLearningSessionType && levelIndex != nil && levelIndex.intValue >= 1;
- + BOOL levelHighEnough = levelIndex != nil && levelIndex.intValue >= 1;
- + mayShowTapTypeToggle = isLearningSessionType && (levelHighEnough || isGildedPracticeSession);
- } else {
- mayShowTapTypeToggle = isLearningSessionType;
- }
- - BOOL mayShowDictationControl = isLearningSessionType && levelIndex != nil && levelIndex.intValue >= 2;
- + BOOL levelHighEnoughForDictation = levelIndex != nil && levelIndex.intValue >= 2;
- + BOOL mayShowDictationControl = isLearningSessionType && (levelHighEnoughForDictation || isGildedPracticeSession);
- __weak DUOSessionViewController *weakSelf = self;
- void (^disableChallengesWhichRequireListeningClosure)(void) = ^void{
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement