Commit d16f0013 authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne

onedrive : displaying the number of items in bottom bar

(cherry picked from commit d4634a7e)
parent e14eed5f
......@@ -94,6 +94,14 @@
[self.tableView reloadData];
[self.activityIndicator stopAnimating];
NSUInteger count = self.controller.currentListFiles.count;
if (count == 0)
self.numberOfFilesBarButtonItem.title = NSLocalizedString(@"NO_FILES", nil);
else if (count != 1)
self.numberOfFilesBarButtonItem.title = [NSString stringWithFormat:NSLocalizedString(@"NUM_OF_FILES", nil), count];
self.numberOfFilesBarButtonItem.title = NSLocalizedString(@"ONE_FILE", nil);
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
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