Fix crash in onRequestPermissionsResult due to empty grantResults

In the case when the permission request dialog is displayed and the
device is changing orientation, the callback will be called with empty
grantResults array. The code needs to take this case into account.

Bug: 27237709
Change-Id: I450d365fcdfa308a69265d75391661fa64028734
1 file changed