[Playlist View] Change truncation behavior a bit
Change the truncation behavior to only truncate if the length exceeds 1024 code points. Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
360464ceec
commit
4e24c5b829
|
@ -525,7 +525,7 @@ static void *playlistControllerContext = &playlistControllerContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *cellTextTruncated = cellText;
|
NSString *cellTextTruncated = cellText;
|
||||||
if([cellTextTruncated length] > 1023) {
|
if([cellTextTruncated length] > 1024) {
|
||||||
cellTextTruncated = [cellTextTruncated substringToIndex:1023];
|
cellTextTruncated = [cellTextTruncated substringToIndex:1023];
|
||||||
cellTextTruncated = [cellTextTruncated stringByAppendingString:@"…"];
|
cellTextTruncated = [cellTextTruncated stringByAppendingString:@"…"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue