随着配置的改变,片段未重新设计

发布于 2025-02-02 20:59:25 字数 446 浏览 3 评论 0 原文

当有配置更改(例如Uimode,locale等)时,片段未正确恢复。然后只需将应用程序放在后台,然后返回前景,然后恢复一切。

这个问题不会以系统的方式出现,但是没有规则,直到Android版本第10版才会出现。显然,这也取决于设备,例如,安装了Android 11的两个不同品牌的手机,它将发生,而在另一种则不会发生。

在随附的视频中,您可以在发生问题时看到问题。

(Screen_recording_20220530-231647_CALL BLOCKER -PHONE.MP4)

When there is a configuration change, such as uiMode, Locale, etc., the fragments are not restored correctly. Then simply put the application in the background, and then return to the foreground, and everything is restored.

The problem does not arise in a systematic way, but without a rule, it does not arise until version 10 of Android. Apparently it also depends on the devices, for example with two different brands of phones, with Android 11 installed, on one it will happen and on another it will not happen.

In the attached video you can see the problem when it occurs.

https://drive.google.com/file/d/1nRXG9fqttc8TtTL4tLF0o8haru8A1YNg/view?usp=drive_web (Screen_Recording_20220530-231647_Call Blocker - Phone.mp4)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文