Replaced the finalInit with an onCreate listener.