Fixed
Status Update
Comments
jo...@google.com <jo...@google.com>
jb...@google.com <jb...@google.com>
he...@gmail.com <he...@gmail.com> #2
ViewModels need to be cleared on Fragments that are being really destroyed, where "really destroyed" means that they are being destroyed without their state being saved, indicating that there's no chance they are going to be restored at a later time.
Unfortunately, isStateSaved(), despite its name, does double duty as a check on whether it is safe to do Fragment Transactions and is always true after onStop(), meaning it can be true even if the state has really not been saved, oddly enough.
We'll just not use isStateSaved() here and rely on a separate indicator for the "really destroyed" case.
Unfortunately, isStateSaved(), despite its name, does double duty as a check on whether it is safe to do Fragment Transactions and is always true after onStop(), meaning it can be true even if the state has really not been saved, oddly enough.
We'll just not use isStateSaved() here and rely on a separate indicator for the "really destroyed" case.
ap...@google.com <ap...@google.com> #3
@ comment #2 Fixed in which version?
ya...@google.com <ya...@google.com>
na...@google.com <na...@google.com> #5
We have to update compile SDK to 28 to adapt this fix?!
Description
Component used: Activity
Version used: 1.8.0
Devices/Android versions reproduced on: Pixel 7 Pro API 34 emulator
enableEdgeToEdge
by default does not add drawing behind the display cutout in landscape mode (see default.png attachment), therefore not really giving an edge-to-edge experience.This could easily be added with this snippet: