fix occasional blank CV panes on activity startup

The condition in onViewModeChanged made it impossible to get out of
UNKNOWN view mode if onLayout had been called before the view mode was
first set. Fix this by looking for something a layout would definitely
have set (a non-zero width).

Added some debugging toString() for TPL.

Bug: 18009285
Change-Id: Ibacaa1f6473edeefceccfd270c2a761113c6e530
2 files changed