Hello!
Interested in this question: how in the VC application was a reboot of the fragment done without a network connection?
When you click on the "Retry" button, the fragment is overloaded, but how can the "offline_fragment" fragment report which fragment was before it?
isOnline()
method inisOnline()
, depending on its value, either a fragment with content or an offline fragment is created. In the offline fragment button, I now can not figure out what to specifically write in the handler of this button, that would "overload" the fragment that was before the loss of communication. Now I tried to do the following - I created thelastFragment
field in thelastFragment
, and if the triggered fragment is not anoffline_fragment
, then I write it in the field, and then when I press the button, I launch a fragment from this field. - Opalosolo