Dialog setOnClickListener not working

When making a dialog subclass I came across a problem where OnClickListener events were not firing. The solution I found here worked. It just entailed moving the onclick listener assignments from the normal Oncreate method to the onStart method.