mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-21 13:50:29 +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.");
|
NSAssert(viewControllerIndex != NSNotFound, @"childViewController is not in the navigation stack.");
|
||||||
|
|
||||||
if (viewControllerIndex == self.viewControllers.count - 1) {
|
if (viewControllerIndex == self.viewControllers.count - 1) {
|
||||||
//view controller is at the top
|
//view controller is at the top, just return our own visibility depth.
|
||||||
return [self visibilityDepth] + 0;
|
return [self visibilityDepth];
|
||||||
} else if (viewControllerIndex == 0) {
|
} else if (viewControllerIndex == 0) {
|
||||||
//view controller is the root view controller. Can be accessed by holding the back button.
|
//view controller is the root view controller. Can be accessed by holding the back button.
|
||||||
return [self visibilityDepth] + 1;
|
return [self visibilityDepth] + 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user