Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
1a518bb1
Commit
1a518bb1
authored
Sep 19, 2015
by
Carola
Browse files
adjust methodname and calls of that method
parent
441cf518
Changes
3
Hide whitespace changes
Inline
Side-by-side
Sources/VLCHTTPUploaderController.m
View file @
1a518bb1
...
...
@@ -55,7 +55,7 @@
name:
UIApplicationDidBecomeActiveNotification
object
:
nil
];
[
center
addObserver
:
self
selector
:
@selector
(
applicationDidEnterBackground
:
)
name:
UIApplicationDidEnterBackgroundNotification
object
:
nil
];
[
center
addObserver
:
self
selector
:
@selector
(
netReachabilityChanged
:
)
name
:
kReachabilityChangedNotification
object
:
nil
];
[
center
addObserver
:
self
selector
:
@selector
(
netReachabilityChanged
)
name
:
kReachabilityChangedNotification
object
:
nil
];
BOOL
isHTTPServerOn
=
[[
NSUserDefaults
standardUserDefaults
]
boolForKey
:
kVLCSettingSaveHTTPUploadServerStatus
];
[
self
changeHTTPServerState
:
isHTTPServerOn
];
...
...
Sources/VLCServerListViewController.m
View file @
1a518bb1
...
...
@@ -171,11 +171,11 @@
_reachability
=
[
Reachability
reachabilityForLocalWiFi
];
[
_reachability
startNotifier
];
[
self
netReachabilityChanged
:
nil
];
[
self
netReachabilityChanged
];
_myHostName
=
[[
VLCHTTPUploaderController
sharedInstance
]
hostname
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
netReachabilityChanged
:
)
name
:
kReachabilityChangedNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
netReachabilityChanged
)
name
:
kReachabilityChangedNotification
object
:
nil
];
}
-
(
void
)
viewWillDisappear
:(
BOOL
)
animated
...
...
@@ -195,10 +195,10 @@
[
_activityIndicator
stopAnimating
];
[
super
viewWillAppear
:
animated
];
[
self
netReachabilityChanged
:
nil
];
[
self
netReachabilityChanged
];
}
-
(
void
)
netReachabilityChanged
:(
NSNotification
*
)
notification
-
(
void
)
netReachabilityChanged
{
if
(
_reachability
.
currentReachabilityStatus
==
ReachableViaWiFi
)
{
[
self
_startUPNPDiscovery
];
...
...
Sources/VLCWiFiUploadTableViewCell.m
View file @
1a518bb1
...
...
@@ -32,7 +32,7 @@
[
self
setupCell
];
[
self
setupConstraints
];
[
self
updateHTTPServerAddress
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
netReachabilityChanged
:
)
name
:
kReachabilityChangedNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
netReachabilityChanged
)
name
:
kReachabilityChangedNotification
object
:
nil
];
}
return
self
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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