Status Update
Comments
am...@google.com <am...@google.com>
jo...@purerave.com <jo...@purerave.com> #2
After looking more into this issue, ViewModels are persisted using retained fragments. After adding retained fragments to the sample app, we can observe that retained fragments are not able to survive landscape lock and unlock scenario either.
am...@google.com <am...@google.com> #3
Hey, currently I can't reproduce your issue.
Link you provided doesn't work, in my simple test project I don't observe described issue.
Could you please say reupload your project somewhere else?
Could you please say what kind of lockscreen, do you use? (it may effect issue)
Could you reproduce this behavior on other devices?
Link you provided doesn't work, in my simple test project I don't observe described issue.
Could you please say reupload your project somewhere else?
Could you please say what kind of lockscreen, do you use? (it may effect issue)
Could you reproduce this behavior on other devices?
mi...@gmail.com <mi...@gmail.com> #4
Hey,
Sorry about the repo link, here is the public one:https://github.com/karmazindmitriy/viewmodelscoping , git@github.com:karmazindmitriy/viewmodelscoping.git
Tested on:
1. Device: NEXUS 5X, API level: 24, lock method: PIN / PATTERN / SWIPE / PASSWORD. Can reproduce by unlocking with any of the unlocking methods. Can also reproduce by unlocking with fingerprint.
2. Device: NEXUS 5X, API level: 27, lock method: PIN / PATTERN / PASSWORD . Can reproduce only when unlocking the device with a fingerprint. Unlocking with PIN / PATTERN / PASSWORD works fine.
3. Device: Pixel, API level: 27, lock method: PIN (haven't tested other) + fingerprint. Can reproduce only when unlocking the device with a fingerprint. Unlocking with PIN / PATTERN / PASSWORD works fine.
Hope this is helpful, please let me know if you need any other info.
Sorry about the repo link, here is the public one:
Tested on:
1. Device: NEXUS 5X, API level: 24, lock method: PIN / PATTERN / SWIPE / PASSWORD. Can reproduce by unlocking with any of the unlocking methods. Can also reproduce by unlocking with fingerprint.
2. Device: NEXUS 5X, API level: 27, lock method: PIN / PATTERN / PASSWORD . Can reproduce only when unlocking the device with a fingerprint. Unlocking with PIN / PATTERN / PASSWORD works fine.
3. Device: Pixel, API level: 27, lock method: PIN (haven't tested other) + fingerprint. Can reproduce only when unlocking the device with a fingerprint. Unlocking with PIN / PATTERN / PASSWORD works fine.
Hope this is helpful, please let me know if you need any other info.
am...@google.com <am...@google.com> #7
Are you referring to the first `onStop` that happens right after unlock (line 12 in screenshot)?
so...@gmail.com <so...@gmail.com> #8
yep
Description
SDK Tools 25.0.8
SDK Platform-tools: 23.1
SDK Build-tools: 23.0.2
API 23
Support library: 23.2
With latest updates of support library, AppCompatActivity does not propagate onConfigurationChanged() to any of its views.
Steps to reproduce:
1. Create a dummy MyContainer extends FrameLayout and override onConfigurationChanged() - add logging in it
2. AndroidManifest.xml - add <activity android:name=".AppActivity" android:configChanges="orientation|screenSize" ...>
3. In activity layout, e.g. myactivity.xml add <...MyContainer .../>
4. Start and rotate device
Note: Activity and FragmentActivity propagate the call without any issues.
Attached is a zipped basic project with the issue.