Specify parent activity. Fixes crashes.
Gradle build update.
Null check to avoid crashes.