This branch replicates permission issue which occurs after process death.
- Enable don't keep activities in developers tools.
- Launch application.
- Don't tap any button in the permission dialog.
- Go to the background to force process death.
- Return to the application and state restoration should occur.
- Permission dialog is still visible, but after pressing any button, for example Deny, onRequestPermissionsResult is not being triggered.
OnRequestPermissionsResult should be triggered even after process death, but it is not. This issue was noticed since API 28.