How to add Toolbar to an Activity which doesn’t extend AppCompatActivity
Mario Viviani

There’s a small bug in your onCreate: delegate.onCreate(…) should be called before super.onCreate(…), according to the docs:

Like what you read? Give Rohan Dhruva a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.