This code scares me, but that is not your fault.  Have you verified that it is still working?  Use very long video names and make sure that the ellipsis are in the right place in portait and landscape mode...