Custom TextClock in widget

I try build my custom TextClock and add in widget. As always, I inherit from TextClock. When I use my class in a widget, the widget does not work, and when I use it in activity, there are no problems. …