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

HTTP-Uploader: show network activity indicator if appropriate

parent c30a35ed
......@@ -236,6 +236,7 @@ static const int httpLogLevel = HTTP_LOG_LEVEL_VERBOSE; // | HTTP_LOG_FLAG_TRACE
}
storeFile = [NSFileHandle fileHandleForWritingAtPath:filePath];
[uploadedFiles addObject: [NSString stringWithFormat:@"/upload/%@", filename]];
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
}
}
......@@ -252,6 +253,7 @@ static const int httpLogLevel = HTTP_LOG_LEVEL_VERBOSE; // | HTTP_LOG_FLAG_TRACE
// as the file part is over, we close the file.
[storeFile closeFile];
storeFile = nil;
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
/* update media library when file upload was completed */
VLCAppDelegate* appDelegate = [UIApplication sharedApplication].delegate;
......
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