In android 11 I noticed this flow- permissions popups are dismissible, and when the user dismisses any permission popup, we get a callback like user-selected ‘never ask again’
We need to add a check if at least anyone permission is denied earlier and RationaleShouldBeShown is false that means at least one permission is permanently denied, that time we need to show settings dialog.
I have implemented this new change w.r.to Android11 API30 for this here