-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt when there is no normal exit #11054
Comments
改进方向难道不应该是意外关闭的处理吗,即使你要求用户按规范使用菜单栏退出应用,意外关闭也是不可避免的 |
但问题是,意外关闭——都关闭了还能怎么处理?关闭的那一瞬间问题就发生了。所以只能尽量提醒用户。 这跟工作过程中电脑突然断电是一个道理,电源都没电了还能指望怎么处理?这次丢数据是铁定的了,只能看看以后能不能预防。 |
你用电脑断电类比是不恰当的,安卓应用是有对应的关闭事件的 |
老铁给点提示,谢谢。 |
应该是在 App 的 onActivityPreDestroyed 里处理,能不能成我没试过,稍等我去试试 |
试了一下onActivityPreDestroyed能处理的任务有限,onSaveInstanceState 更适合 @88250 |
收到,等有空我试试,多谢。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月22日(周一) 中午11:23
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [siyuan-note/siyuan] 移动端未通过「退出应用」按钮退出,下次启动时提示 (Issue #11054)
应该是在 App 的 onActivityPreDestroyed 里处理,能不能成我没试过,稍等我去试试
试了一下onActivityPreDestroyed能处理的任务有限,onSaveInstanceState 更适合 @88250
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
考虑了下,还是用内核来记录吧,这样桌面端也能用。 |
移动端未通过「退出应用」按钮退出,下次启动时提示
In what scenarios do you need this feature?
数据不知道为啥失踪了,有个笔记本包括里边的文档找不到了,我天天加班加懵逼了还是? - JeffreyChen 的回帖 - 链滴
感觉这个交互很合理,比如每次启动内核与点击「退出应用」都单独记录一下,下次启动根据记录来判断
毕竟大多数用户不会看完用户指南,还是需要软件主动提醒
Describe the optimal solution
移动端未通过「退出应用」按钮退出,下次启动时提示。
提示的内容像是这样:“检测到应用意外关闭。请使用菜单栏「退出应用」按钮退出应用,以免造成数据丢失。”
Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: