Add the cache size to the "clear cache" button

This commit is contained in:
ylecollen
2014-12-19 11:03:09 +01:00
parent fea472b970
commit 45be269b5e
3 changed files with 13 additions and 1 deletions
@@ -511,7 +511,8 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ClearCacheCell"];
}
cell.textLabel.text = @"Clear application cache";
cell.textLabel.text = [NSString stringWithFormat:@"Clear cache (%@)", [NSByteCountFormatter stringFromByteCount:[MatrixHandler sharedHandler].MXCacheSize countStyle:NSByteCountFormatterCountStyleFile]];
;
cell.textLabel.textAlignment = NSTextAlignmentCenter;
cell.textLabel.textColor = [AppDelegate theDelegate].masterTabBarController.tabBar.tintColor;
} else {