mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-20 13:19:16 +00:00
Don't add zero for readability
This commit is contained in:
parent
7901a985e3
commit
72d7b57abb
@ -39,8 +39,8 @@ ASVisibilityDepthImplementation;
|
||||
NSAssert(viewControllerIndex != NSNotFound, @"childViewController is not in the navigation stack.");
|
||||
|
||||
if (viewControllerIndex == self.viewControllers.count - 1) {
|
||||
//view controller is at the top
|
||||
return [self visibilityDepth] + 0;
|
||||
//view controller is at the top, just return our own visibility depth.
|
||||
return [self visibilityDepth];
|
||||
} else if (viewControllerIndex == 0) {
|
||||
//view controller is the root view controller. Can be accessed by holding the back button.
|
||||
return [self visibilityDepth] + 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user