gpt4 book ai didi

android - Firestore : When should I detach the snapshot listener which updates a TextView in the navigation DrawerLayout?

转载 作者:行者123 更新时间:2023-11-29 23:12:14 25 4
gpt4 key购买 nike

<分区>

在我的抽屉式导航布局中,我在 TextView 中显示了用户的登录信息。如果他单击标题为“编辑个人资料”的按钮然后提交相应的表格,则可以更改后者。这就是我使用快照监听器的原因,它会更新 TextView 。

由于抽屉导航布局在任何执行时间都存在,我应该什么时候分离监听器?

如果用户点击“注销”按钮,我可以将其分离,但如果他从未点击过怎么办?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com