Click here to Skip to main content
16,020,345 members

Comments by hiwa doski (Top 47 by date)

hiwa doski 23-Nov-19 20:44pm View    
thanks but that syntax look very weird to me, can you please do it in Java.
hiwa doski 7-Nov-19 11:23am View    
yeah i found the answer and it's because `commit()` is asynchronous and i need to use `commitNow()` instead
hiwa doski 6-Nov-19 12:53pm View    
Thanks, but the problem is why it's not receiving a valid object, if i do another check then it will ignore my statements because `f1` will still be null, and i checked id multiple time it's the same one, `FragmentManager` is adding to it and `f1` is receiving from it.
hiwa doski 6-Nov-19 11:08am View    
okay, thanks.
hiwa doski 6-Nov-19 8:49am View    
i fixed it by changing
f1 = (FragmentA) manager.findFragmentById(R.id.main_fragment_container);
to
f1 = (FragmentA) fragment;

and it worked but i don't if this is the correct way of doing it.