MazeView is now a ViewGroup (FrameLayout) and almost all views are already using invalidate() instead of setcontentview().