Fix NPE in setCustomView() before addTab()

Fixed by moving the Tab's view creation to
within newTab(), ensuring that there is a View
and Context available for setCustomView().

Also fixed a memory leak due to our new view
pooling and a shared OnClickListener. Fixed by
moving our click handling to be within TabView.

BUG: 25855779

Change-Id: Iba104840933d88d7482fb758684286aa7922ea92
1 file changed