Status Update
Comments
se...@google.com <se...@google.com>
me...@gmail.com <me...@gmail.com> #2
This is probably happening because there are multiple instances of DataStore active. You should consider managing the DataStore as a singleton. See the attached bug for more info.
st...@gmail.com <st...@gmail.com> #3
And just to confirm, it does work for you if you remove the "enableOnBackInvokedCallback" from your android manifest right?
me...@gmail.com <me...@gmail.com> #4
Yep that's right !
Description
This issue stems from this one directly
Currently pressing back does not work with `android:enableOnBackInvokedCallback="true"`, this is definitely a bug as that option is enabled to use predictive back gestures, these two features shouldn't be interfering with each other.
The fix was also super non-obvious, if someone had not found that issue in the issue-tracker there's no way you'd be able to piece together that it's enabling predictive back gesture which breaks back handling inside m3 bottom sheets.