Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
2df23bbe
Commit
2df23bbe
authored
Jul 25, 2013
by
Gleb Pinigin
Browse files
Dropbox: do not show back for root directory on iPad (closes #9016)
parent
ec16e121
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCDropboxTableViewController.m
View file @
2df23bbe
...
@@ -54,7 +54,8 @@
...
@@ -54,7 +54,8 @@
self
.
navigationItem
.
titleView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
self
.
navigationItem
.
titleView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
_backButton
=
[
UIBarButtonItem
themedBackButtonWithTarget
:
self
andSelector
:
@selector
(
goBack
:
)];
_backButton
=
[
UIBarButtonItem
themedBackButtonWithTarget
:
self
andSelector
:
@selector
(
goBack
:
)];
self
.
navigationItem
.
leftBarButtonItem
=
_backButton
;
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
)
self
.
navigationItem
.
leftBarButtonItem
=
_backButton
;
self
.
tableView
.
rowHeight
=
[
VLCDropboxTableViewCell
heightOfCell
];
self
.
tableView
.
rowHeight
=
[
VLCDropboxTableViewCell
heightOfCell
];
self
.
tableView
.
separatorColor
=
[
UIColor
colorWithWhite
:.
122
alpha
:
1
.];
self
.
tableView
.
separatorColor
=
[
UIColor
colorWithWhite
:.
122
alpha
:
1
.];
...
@@ -115,7 +116,7 @@
...
@@ -115,7 +116,7 @@
[
_dropboxController
requestDirectoryListingAtPath
:
_currentPath
];
[
_dropboxController
requestDirectoryListingAtPath
:
_currentPath
];
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPad
)
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPad
)
_backButton
.
enabled
=
!
[
_currentPath
isEqualToString
:
@"/"
];
self
.
navigationItem
.
leftBarButtonItem
=
!
[
_currentPath
isEqualToString
:
@"/"
]
?
_backButton
:
nil
;
}
}
#pragma mark - interface interaction
#pragma mark - interface interaction
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment