The app will crash when the user refuses permission at begin of application.
I have sent a PR that fixed this crash, however, it is just a null-ptr-check not the problem source.
The problem head is focus-switch between different window if the permission-dialog shows.
You should check onWindowFocusChanged and checkPermissionAndThenLoad in MainActivity .
The app will crash when the user refuses permission at begin of application. I have sent a PR that fixed this crash, however, it is just a null-ptr-check not the problem source.
The problem head is focus-switch between different
window
if the permission-dialog shows. You should checkonWindowFocusChanged
andcheckPermissionAndThenLoad
inMainActivity
.