Dialogs are not showing up(sometimes) in the HomePage, because the parser says that the current dialog view already has a parent and adding it to another parent would ...
This is an example of using afollestad/material-dialogs from Java. material-dialogs was shifted to Kotlin in version 2.0. Kotlin and Java are interchangeable, so you can also call them from Java.