Commit 7b01e875 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Aspen: somewhat improve the table view content

parent ab8c4b3c
...@@ -87,14 +87,13 @@ ...@@ -87,14 +87,13 @@
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) { if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
} }
MLFile *object = _foundMedia[indexPath.row]; MLFile *object = _foundMedia[indexPath.row];
cell.textLabel.text = object.title; cell.textLabel.text = object.title;
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ — %.2f MB", [VLCTime timeWithNumber:[object duration]], [object fileSizeInBytes] / 2e6];
cell.imageView.image = object.computedThumbnail;
return cell; return cell;
} }
......
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