-
Notifications
You must be signed in to change notification settings - Fork 241
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
Intent handling needs work #180
Comments
why store Or maybe
|
That's more or less the thrust of this issue, yes. |
You're missing a line of code to make intent restoration work.
Should be
And also this line should add the extra for |
Did I mention that if you use the EmptyState on intent restore, then any future view state on config changes will be lost? |
How has this type of issue been around for 11 months? I mean I can make my own addHistoryToIntent function.. but.. |
@dcow you can't (or at least you can't rely on Flow's "intent loading" and Although a simple solution to this problem is to just send a bunch of keys into the intent manually and then call |
@Zhuinden luckily I can do:
But that only works if I'm in control of the incoming intent (assuming that outgoing history is parceled correctly and the bug is only in the |
@dcow I think the bug is in You're better off with manually using |
@Zhuinden yeah this thing is fucked. That intent field is never set. I'd end up writing my own |
@dcow probably not considering it's completely broken; I have my own fork of Flow where I did fix this because I did use this for adding History to a PendingIntent but that one no longer has |
@Zhuinden yeah your stuff is more and more compelling. I just wrote my own functions to pull history from an intent and select history in Flow's priority and then only set it based on whether history already exists or not. It works for now but if I have more time in the future I'll check your stuff out. |
@dcow my fork by the way is at https://github.com/Zhuinden/flowless/ . The key difference in behavior is that I removed |
There are two big problems with the current Intent handling:
load()
is looking for the wrong key.Probably the right solution is an SPI that allows pluggable Intent unpacking.
The text was updated successfully, but these errors were encountered: