You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I encounter a problem.
I call Flow.get(context) in onLoad of the first path and it will lead to a NullPointerException.
Since when we call in MainActivity:
The first path "Paths.ConversationList()" will be created and its onLoad is called in FlowDelegate's onCreate():
flow = new Flow(selectHistory(intent, savedHistory, defaultHistory, parceler));
But we return the flowSupport two lines after.
We can't get the flow services in that time since flowSupport is null:
@Override public Object getSystemService(String name) {
Object service = null;
if (flowSupport != null) {
service = flowSupport.getSystemService(name);
}
return service != null ? service : super.getSystemService(name);
}
any good suggestion?
Many Thanks
The text was updated successfully, but these errors were encountered:
hijamoya
changed the title
Timing for Flow.get()
Timing issue for Flow.get()
May 19, 2015
This should be resolved on master (and in the next release). We're no longer using FlowSupport or FlowDelegate. Lifecycle and initialization are much better managed.
Hi, I encounter a problem.
I call Flow.get(context) in onLoad of the first path and it will lead to a NullPointerException.
Since when we call in MainActivity:
The first path "Paths.ConversationList()" will be created and its onLoad is called in FlowDelegate's onCreate():
But we return the flowSupport two lines after.
We can't get the flow services in that time since flowSupport is null:
any good suggestion?
Many Thanks
The text was updated successfully, but these errors were encountered: