Commit edf1f2ab authored by Felix Paul Kühne's avatar Felix Paul Kühne

show network activity indicator during downloads

parent 5c12c507
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
} else { } else {
_downloadInProgress = YES; _downloadInProgress = YES;
_progressIndicator.hidden = NO; _progressIndicator.hidden = NO;
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
} }
} }
...@@ -82,6 +83,7 @@ ...@@ -82,6 +83,7 @@
APLog(@"http file download complete"); APLog(@"http file download complete");
_downloadInProgress = NO; _downloadInProgress = NO;
_progressIndicator.hidden = YES; _progressIndicator.hidden = YES;
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
VLCAppDelegate * appDelegate = [UIApplication sharedApplication].delegate; VLCAppDelegate * appDelegate = [UIApplication sharedApplication].delegate;
[appDelegate updateMediaList]; [appDelegate updateMediaList];
...@@ -93,6 +95,7 @@ ...@@ -93,6 +95,7 @@
APLog(@"http file download failed (%i)", error.code); APLog(@"http file download failed (%i)", error.code);
_downloadInProgress = NO; _downloadInProgress = NO;
_progressIndicator.hidden = YES; _progressIndicator.hidden = YES;
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
[_mediaViewController dismiss:nil]; [_mediaViewController dismiss:nil];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment